Mission 06 Seven Segment Display
What you need
Circuit
Tips
Code
main.swift
/*
Mission6 7-Segment Display
You should see a number "6" on the 7-segment display.
The circuit:
- Connect the 7-segment display into the Arduino Sheild.
- Note: 7-segment display consists of 7 LEDs, called segments, arranged in the shape of an β8β.
Most 7-segment displays actually have 8 segments, with a dot on the right side of the digit
that serves as a decimal point.
created 2019
by Orange J
Try to show characters like βHβ βEβ βLβ βLβ βOβ on it.
This example code is in the public domain.
Visit madmachine.io for more info.
*/
import SwiftIO
let number = 6
let sevenSeg = SevenSegment()
while true {
sevenSeg.print(number)
}SevenSegment.swift
Video
See Also
References
Last revision 2020/09/10 by Johnson
Last updated
Was this helpful?