This tutorial presumes that you have read the Getting Started tutorial.
There are five Ruff development steps:
- Create project
- Add devices
- Build hardware
Run the following command in an empty folder:
This will automatically create the project files you will need to start the development process.
Find the devices you need, such as sensors or buttons, here.
You can also find driver information for devices in the above link. You can add these using the following command:
rap device add your-device-id
The device id is defined for later use in your code. This command will add necessary information into
You must enter the model name of your device in order to install drivers and dependencies.
Sometimes you may need to add additional packages or utilities. You can find them here. Use the following command to download and install packages：
rap install package-name --save
This will also update
Once you have added all of your devices, use this command:
This will generate a layout to help you build your hardware.
Now you can write the code that will change the world!
For more information, see the Ruff Programming Model
When you finish coding, deploy and test your code using the following command:
rap deploy -s