Sample Code
Hardware Connection: Connect the Red LED to J1 port and the potentiometer to J2 port in the Nezha Pro Breakout board.
Result: The brightness is adjusted by the potentiometer by using a map block which can match Analog Data from 0 to 1023 with brightness from 0 to 100%.
Specification
Item | Parameter |
---|---|
SKU | EF05009, EF05010, EF05011 |
Connection | RJ11 |
Type of Connection | Analog input |
Working Voltage | 3.3V |