Skip to content

zakimadaoui/bmr-challenge3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What the code does

  • the program initalizes TIMER1 to trigger interrupts on each second, inits ADC0 and the LCD display
  • Whenever a timer interrupt occurs, the device exits sleep mode and the the chip ambiant tempreature is read and updated inside the interrupt handler.
  • then the program shows the following animation on the LCD screen and puts the cpu to sleep mode again
-------------------- 
|[    ]  AWAKE     | 
|TEMP: 45          | 
-------------------- 
--------------------
|[#   ]  AWAKE     |
|TEMP: 45          |
--------------------
--------------------
|[##  ]  AWAKE     |
|TEMP: 45          |
--------------------
--------------------
|[### ]  AWAKE     |
|TEMP: 45          |
--------------------
--------------------
|[### ]  AWAKE     |
|TEMP: 45          |
--------------------
--------------------
|[####] AWAKE      |
|TEMP: 45          |
--------------------
--------------------
|[####] ASLEEP     |
|TEMP: 45          |
--------------------

About

My attempt on Challenge 3 of Bare-Metal Rust course

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published