Skip to content

NextLevelTiming/neon-timing-serial-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Neon Timing Serial Example

This is an example of the Neon Timing Protocol over a serial connection.

This example will establish a connection to another Neon Timing client and wait for race events. Once race events are received the device will use the attached neopixels to display the current race state.

  • Race Stating: Solid red lights
  • Countdown Started: Animated flashing red lights
  • Countdown End Delay Started: Turns off all lights
  • Race Started: Solid green lights
  • Race Completed: Animated flashing white lights for 10 seconds, then red lights

Animated Light Shows

It should be noted this code is more complex due to the animated light shows: countdown started and race completed. This is done to allow processing new Neon Timing Protocol messages while an these light shows are still being displayed.

Most example code for NeoPixel animated lights will end up blocking the entire processor from doing anything during the animation. This example will intentionally interupt animations as we process new race events.

Components

While this code will work for many ESP32 devices and can be ported to other types of microcontrollers- here are the components we tested with.

The 470 ohm resistor between the ESP32 and NeoPixels can help prevent damage to your first pixel. Consider reading the NeoPixel Uberguide to connect other types of NeoPixels.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages