====== 7-segment LED Display ====== //Related to: [HW] [[en:hardware:homelab:digi]]// This library is intended to use a 7-segment LED display on the HomeLab Digital i/o module board. Numbers from 0 to 9 can be displayed with the library. ===== Functions ===== * **//void segment_display_init(void)//** \\ Configures display driver control pins. * **//void segment_display_write(unsigned char digit)//** \\ Displayes a digit on display. Parameters: * //digit// - Number value from 0 to 9. Any other case E like "error" is displayed. ===== Example ===== Number 5 is showed on LED display. #include int main(void) { // Display initialization. segment_display_init(); // Digit displaying. segment_display_write(5); }