X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Scan%2FMDErgo1%2Fscan_loop.c;h=e80119b6d8d00546f2742c0f62d1ac1bea0d58e0;hb=46765e85c57e19b89754f4f9c26c8f18b35148e5;hp=8e824c314aee69d1b741f84a13d71558f4a5981d;hpb=865be6145fc111ceba1fc2103ec09147dab95c83;p=kiibohd-controller.git diff --git a/Scan/MDErgo1/scan_loop.c b/Scan/MDErgo1/scan_loop.c index 8e824c3..e80119b 100644 --- a/Scan/MDErgo1/scan_loop.c +++ b/Scan/MDErgo1/scan_loop.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2014-2015 by Jacob Alexander +/* Copyright (C) 2014-2016 by Jacob Alexander * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -56,7 +56,7 @@ inline void Scan_setup() Connect_setup( Output_Available ); // Setup GPIO pins for matrix scanning - //Matrix_setup(); + Matrix_setup(); // Setup ISSI chip to control the leds LED_setup(); @@ -73,7 +73,7 @@ inline void Scan_setup() inline uint8_t Scan_loop() { // Scan Matrix - //Matrix_scan( Scan_scanCount++ ); + Matrix_scan( Scan_scanCount++ ); // Process any interconnect commands Connect_scan(); @@ -102,3 +102,15 @@ inline void Scan_finishedWithOutput( uint8_t sentKeys ) Scan_scanCount = 0; } + +// Signal from the Output Module that the available current has changed +// current - mA +void Scan_currentChange( unsigned int current ) +{ + // Indicate to all submodules current change + Connect_currentChange( current ); + Matrix_currentChange( current ); + LED_currentChange( current ); + LCD_currentChange( current ); +} +