You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
see ultrasonic sensor nanpy class and nanpy-firmware classes for implementation help
Convert the Arduino class written by @bwall72 to a Nanpy class. This involves writing empty pass functions in Python, then a nanpy-firmware ArduinoObject that accepts those empty functions and returns a value.
The following classes should be written:
colorsensor.py
ColorSensorClass.cpp
ColorSensorClass.h
ColorSensorWrapper.cpp
ColorSensorWrapper.h
To test this sensor, create a colour sensor in the Drivetrain subsystem. Give it a function and test if it works. Something like this:
see ultrasonic sensor nanpy class and nanpy-firmware classes for implementation help
Convert the Arduino class written by @bwall72 to a Nanpy class. This involves writing empty pass functions in Python, then a nanpy-firmware ArduinoObject that accepts those empty functions and returns a value.
The following classes should be written:
To test this sensor, create a colour sensor in the Drivetrain subsystem. Give it a function and test if it works. Something like this:
Drivetrain class
firefighter.py