Pin names
Anode (positive pin)
Cathode (negative pin)
Attributes
The color of the LED body
The color of the light
Text that appears below the LED
Gamma correction factor
Flips the LED horizontally
The framerate of the LED
To rotate LEDs, click on them and press “R”, or set the “rotate” property in the diagram format.
Gamma correction
The LED automatically applies gamma correction. This means that even a very short burst of current will result in some visible light, similar to how physical LEDs work, so you get more accurate simulation in the following cases:- Using
analogWrite()with very small values (short duty cycle), - LED scanning techniques such as Charlieplexing.
analogWrite() look much brighter on the left LED.
For more information about gamma correction, including some code examples, check out this great guide from Adafruit.
FPS
Thefps attribute controls the framerate of the LED, that is how often the LED brightness is updated. The default value is 80.
If you are using PWM (analogWrite()) and noticing flickering, try setting a smaller the fps value.
In case you are experiencing LED light ghosting, you can try increasing the fps value. For example, this rotating cube uses an fps value of 10000 to update the LEDs at a higher rate and avoid ghosting of the rotating cube.