hamsadev / sevenSeg

A library for setting up 7 segments as a multiplexer for all types of microcontrollers.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sevenSeg

A library for setting up 7 segments as a multiplexer for all types of microcontrollers. This library is under development and currently works only on AVR microcontrollers.

  • putInt
  • putString
  • putFloat
  • Common Anode and Common Cathode support
  • multi instance support
  • auto refresh support

Demo

Tests

  • AVR (atmega16)
  • stm32F1
  • stm32F3
  • stm32F4
  • stm32F7

How to use

  • First, add the library to your project
  • include the seven_seg.h file
  • include "seven_seg_port.h" file

According to the number of seven segments and their number of digits, sevenSegRefreshIsr function should be called continuously. If the time interval is too short, the interrupt rate may exceed the task time and you will have a virtual loop and the performance will not be correct. And if the time interval is too long, you may encounter seven segment flashing. This function is responsible for keeping seven segments alive.

TODO: update readme

About

A library for setting up 7 segments as a multiplexer for all types of microcontrollers.

License:GNU General Public License v3.0


Languages

Language:C 100.0%