ArduinoLibCSharp: C# library to interact with the Arduino directly


hi everyone,

i have released first version of arduino related c# library on github.

compatibility note: have tested uno boards exclusively, minor adaptations required other architectures.

arduinodriver (library)

an arduinodriver can created in order communicate attached board (through sending messages). available commands mimicking functions in arduino language libraries (read / write analog , digital outputs, set pinmodes, send tone / notone ,...), arduino snippets found online can directly ported work arduinodriver instead.

code: [select]
    const byte pin = 8;
    var driver = new arduinodriver(true);
    driver.send(new tonerequest(pin, 200, 1000));


for work, c# arduinodriver library implements serial communication protocol corresponding listener arduino.

the protocol supports:

* handshaking , version negotation
* high speed communication
* fault tolerance , error correction (fletcher-16 checksums)
* automated deployment of listener code arduino

arduinouploader (library)

the arduinouploader library talks arduino's bootloader directly through dialect of stk-500 protocol in order flash memory on device contents of intel hex file.

the solution comes seperate arduinosketchuploader command line utility can used upload compiled sketch programs arduino directly without requiring interaction arduino ide or avrdude.

sample code: playing super mario bros "underworld" theme

in sample project, above libraries used play retro tune on arduino directly c# program.



Arduino Forum > Development > Other Software Development > ArduinoLibCSharp: C# library to interact with the Arduino directly


arduino

Comments

Popular posts from this blog

Error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode - Raspberry Pi Forums

class MPU6050 has no member named begin

missing filename after '-o'