Things used in this project

Hardware components:
Esquilo%20top%20small
Esquilo Air
×1
12002 04
Breadboard (generic)
×1
5161AS 1 digit 7 segment LED display
×1
Mfr 25fbf52 221r sml
Resistor 221 ohm
×1
Male/Male Jumper Wires
It is nice to make them color coordinated. I used: 2 black, 1 red, 2 white, 2 blue, 1 orange, 1 green, 1 yellow
×10

Schematics

Esquilo & 5161AS wiring diagram
Esquilo Air & 5161AS 1 digit 7 segment LED wiring diagram
Imqebo5gqqiga11d2dsy
LCD_5161AS.nut
Library for 5161AS 1 digit 7 segment LED on the Esquilo Air.

Code

LCD_5161AS_demo.nutPlain text
Demonstration code of the 5161AS 1 digit 7 segment LED on the Esquilo Air.
//
// LED 5161AS demo
//
// 20161214 Leeland Heins
//
require("GPIO");

// Load the library.
dofile("sd:/LED_5161AS.nut");

// Instantiate our class.
local led = LED_5161AS();

// Turn on all LED segments
led.all_on();

delay(500);

// Turn off all LED segments
led.all_off();

delay(500);

local i;

// Display hex digits 0-f and blink decimal point between
for (i = 0; i < 16; i++) {
    led.digit(i);

    delay(500);

    led.blink_dp();

    delay(500);

    led.blink_dp();
    
    delay(500);
    
    led.blink_dp();
    
    delay(500);
    
    led.blink_dp();
}

delay(500);

led.all_off();
LCD_5161AS.nut
Library for the 5161AS 1 digit 7 segment LCD on the Esquilo Air.

Credits

27eae0443d051e9e246159707c1f2203
Leeland Heins
4 projects • 0 followers
Hardware & Software H4x0r
Contact

Replications

Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Sign up / LoginProjectsPlatformsTopicsContestsLiveAppsBetaBlog