Treehopper C# API
|
These classes are the foundation of Treehopper. More...
Classes | |
class | ConnectionService |
Discovers Treehopper boards attached to your device. More... | |
class | TreehopperUsb |
The core class for communicating with Treehopper USB boards. More... | |
class | Pin |
Built-in I/O pins. More... | |
class | HardwareSpi |
Built-in SPI peripheral. More... | |
class | HardwareI2C |
Built-in I2C module. More... | |
class | HardwareUart |
Built-in UART peripheral. More... | |
class | HardwarePwm |
Built-in hardware PWM channels. More... | |
These classes are the foundation of Treehopper.
Many of these classes contain useful code examples and tips on usage.
Except for ConnectionService, all these classes live in the Treehopper.dll assembly (which resides in the Treehopper NuGet package).
In almost all cases, the entire object tree is built for you. For example, you'll never call
Instead, you'll access these objects through the TreehopperUsb object, which you'll obtain from the ConnectionService.Instance. Like so: