Skip to content

entech281/2026OperatorGlasses

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

281 operator glasses with leds

Usage Instructions

  • program this firmware onto an arduino leonardo
  • wire inputs to pints 5-9 ( 4 inputs)
  • wire a single rgb addressable string to pin A2
  • program robot code like:
    OperatorGlasses m_glasses = new OperatorGlasses(1);
    m_glasses.setLED(OperatorGlasses.LedNumber.k2, OperatorGlasses.Color.GREEN, true);    

8 colors and 2 flashing states are available:

    public enum LedNumber { k0(0), k1(1), k2(2), k3(3); public final int v; LedNumber(int v){this.v=v;} }
    
    // Updated to support 3-bit colors (0-7)
    public enum Color { 
        BLACK(0), RED(1), GREEN(2), BLUE(3), 
        YELLOW(4), CYAN(5), MAGENTA(6), WHITE(7); 
        public final int v; Color(int v){this.v=v;} 
    }

see java-project for a sample that rot

technical details

  • uses an arduino leonardo board

  • device name 281 operator glasses is set by using custom boards.json ( see boards)

  • only one class is needed to use with robot code-- example of use is in java-project folder

  • based on original rpoject here https://github.com/ohowe1/LeonardoWithDSOutputs/

    • adjusted to use FastLED
  • LED scheme

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors