solarcaratuva/Rivanna2

Work on getting the Rivanna2 repository cloned, set up, and then try running some example code!

Closed this issue · 0 comments

After cloning the repository, open it up in vs code and change the environment from the default environment to the dev board you are using (bottom of the screen next to the platformio terminal symbol) that ends with "ecu".

Now you can edit the "ECU/main.cpp" file and try out running some different examples provided by Mbed.

Last week we tried blinking an LED (with some success), so give that a try yourself:
https://os.mbed.com/docs/mbed-os/v6.14/apis/digitalout.html

Also try out sending and receiving CAN messages with this example:
https://os.mbed.com/docs/mbed-os/v6.14/apis/other-driver-apis.html

Here are some other cool examples:
https://os.mbed.com/docs/mbed-os/v6.14/apis/spi.html
https://os.mbed.com/docs/mbed-os/v6.14/apis/i2c.html
https://os.mbed.com/docs/mbed-os/v6.14/apis/thread.html

Feel free to explore other examples as well, and always feel free to ask questions if you get stuck or are just curious!