Compare commits

..

2 commits

Author SHA1 Message Date
jakeg00dwin
155c4cce9e MPLABX 2024-08-13 17:33:00 -07:00
jakeg00dwin
41cc5b2eef Fixed issue with the load reading logic. 2024-08-13 17:32:55 -07:00
3 changed files with 5 additions and 29 deletions

View file

@ -1,17 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project>
<executable name="dist/attiny404/debug/High.debug.elf">
<memory name="program">
<units>bytes</units>
<length>4096</length>
<used>1900</used>
<free>2196</free>
</memory>
<memory name="data">
<units>bytes</units>
<length>256</length>
<used>4</used>
<free>252</free>
</memory>
</executable>
</project>

View file

@ -2,11 +2,6 @@
<project-private xmlns="http://www.netbeans.org/ns/project-private/1">
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="0"/>
<open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
<group>
<file>file:/home/ronin/Documents/projects/freelance/laith_naaman/High/src/main.c</file>
<file>file:/home/ronin/Documents/projects/freelance/laith_naaman/High/src/load/load.c</file>
<file>file:/home/ronin/Documents/projects/freelance/laith_naaman/High/src/ADC/ADC.c</file>
<file>file:/home/ronin/Documents/projects/freelance/laith_naaman/High/src/RegEdit/RegEdit.c</file>
</group>
<group/>
</open-files>
</project-private>

View file

@ -49,14 +49,12 @@ int main(int argc, char **argv)
//The G1 pin is low at this point.
_delay_ms(2500);
ZCD_Poll();
//Enable pins are enabled(set high) if the ADCLOAD value is valid.
Load_HandleLoadPortA(ADC_LOAD1, EN1);
Load_HandleLoadPortB(ADC_LOAD2, EN2);
Load_HandleLoadPortB(ADC_LOAD3, EN3);
while(true){
//; //Do nothing until new Power cycle/reset occurs
//Enable pins are enabled(set high) if the ADCLOAD value is valid.
Load_HandleLoadPortA(ADC_LOAD1, EN1);
Load_HandleLoadPortB(ADC_LOAD2, EN2);
Load_HandleLoadPortB(ADC_LOAD3, EN3);
}
}
}