Skip to content

Commit

Permalink
Merge pull request #4 from jminjares4/fix_lcd
Browse files Browse the repository at this point in the history
Fix main.c
  • Loading branch information
jminjares4 authored Sep 26, 2022
2 parents ba2e5fa + ebb9f52 commit 7f270d5
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 18 deletions.
6 changes: 3 additions & 3 deletions Liquid Crystal Display (LCD)/Hello World to LCD!/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ void main(void)

// Set custom text
char buffer[16]; // lcd text length
sprintf(buffer, "Custom: %.2lf", 98.2f);
sprintf(buffer, "ECE! %.2lf, %c, %d", 3.14, 'A', 1);
lcdSetText(buffer, x, y);

lcdSetText(buffer, 0, 1); // set to bottom line
while (1)
;
while (1);
}
4 changes: 1 addition & 3 deletions Port Interrupts/Pull-down Interrupt/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@ void main(void)
NVIC->ISER[1] = 1 << ((PORT4_IRQn)&31); // see NVIC table, all PORTx go in ISER[1]

__enable_irq(); // enable global interrupts
while (1) // empty loop
{
}
while (1);
}

void PORT4_IRQHandler(void)
Expand Down
4 changes: 1 addition & 3 deletions SysTick Timer/Systick with Interrupt/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,7 @@ void main(void)
__enable_irq();

// infinite loop for embedded system
while (1)
{
}
while (1);
}

void SysTick_Handler(void)
Expand Down
4 changes: 1 addition & 3 deletions TimerA/Multiple TimerA/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,7 @@ void main(void)

// enable global interrupts
__enable_irq();
while (1) // empty loop
{
}
while (1);
}
void TA0_0_IRQHandler(void)
{
Expand Down
4 changes: 1 addition & 3 deletions TimerA/Simple TimerA/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ void main(void)
// enable global interrupts
__enable_irq();

while (1)
{ // empty loop
}
while (1);
}

void TA0_0_IRQHandler(void)
Expand Down
4 changes: 1 addition & 3 deletions TimerA/TimerA with Interrupt/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@ void main(void)
// Enable global Interrupts
__enable_irq();
// empty loop
while (1)
{
}
while (1);
}
void TA0_0_IRQHandler(void)
{
Expand Down

0 comments on commit 7f270d5

Please sign in to comment.