More Arduino stuff! We continued with the Arduino kit. This time we used a RGB light with all 3 colours. We used some resistances to prevent the lights from getting broken. The resistances are inserted on the positive side before the lamp.
To get a white light, all other colours have to be equal (same value). This can be done by the value
HIGH or a number between
0 and 255. If you want to use an analog code you have to use a ~ plus plug socket.
 |
The white lamp has 4 sticks. The longest of them is the minus point. The Other 3 are red, green and blue. |
 |
Creating combined colours (for example lila or turquoise). |
 |
The Code for a diming light. |
 |
Part of the code for a changing colour lamp: The value t can be set negative or positive to become darker or brighter. |
0 Kommentare:
Kommentar veröffentlichen