-
Notifications
You must be signed in to change notification settings - Fork 4
Building your first Program
MBF tries to generalize access to microcontrollers as good as possible. This also includes Pins that are available on your board. One example of this generalization are ArduinoPins.
When your Board is supported then you can use Pin names that are commonly known in the Arduino world which makes it a lot easier to write code that is independent of the Board. Another well know Abstraction comes from the CircuitPython world, the naming is similar to Arduino on the Circuitpython boards, but Devices like SPI and I2C have pin names like SDA, SCL or RX, TX for UART. MBF will soon also support this kind of naming.
When you open a project like 'Blinky' in the samples directory you have a choice between several pre-configured lpi files that match already supported boards.
When you own one of the supported boards you only need to open the matching LPI file and run the example on your device: