salt-call
Executionsalt-call
ExecutionThis section is to be completed by the students of the class.
Task is to develop an object oriented class for one of the sensors. An example for such a class can be found at:
TODO: which compas sensor
The default pins are defined in variants/nodemcu/pins_arduino.h as GPIO
SDA=4
SCL=5
D1=5
D2=4.
You can also choose the pins yourself using the I2C constructor Wire.begin(int sda, int scl);