|
Re: RoboRIO as I2C slave?
The easiest way IMHO is to use:
- SmartDashboard.getNumber() - Use to return doubles. You should use SmartDashboard.putNumber() first to give yourself a place to input the number.
- SmartDashboard.getString() - Use to return text. Again use putString() first
- SmartDashboard.getBoolean() - Use to return true or false. Use putBoolean() first.
There are different ways to display these things on SmartDashboard as well such as choosing View>Editable in the menubar then right clicking on different objects to change their appearance, etc.
__________________
2016-present: High School Student, FRC 1058 PVC Pirates
2016: RiverRage 20 Champions, Battle of the Bay 3 Champions
2013-2015: Middle School Student, FRC 3467 Windham Windup
|