User Tools

Site Tools


milestone_3_task_2

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

milestone_3_task_2 [2023/03/01 12:13]
scott [Developing the Transmitter State Machine]
milestone_3_task_2 [2023/03/02 17:53] (current)
scott [Source Code]
Line 62: Line 62:
   * drivers/​switches.h   * drivers/​switches.h
   * include/​leds.h   * include/​leds.h
 +  * include/​mio.h
 +  * include/​utils.h
   * lasertag/​main.c   * lasertag/​main.c
   * lasertag/​transmitter.h   * lasertag/​transmitter.h
Line 324: Line 326:
   printf("​starting transmitter_runTest()\n"​);​   printf("​starting transmitter_runTest()\n"​);​
   transmitter_init(); ​                                    // init the transmitter.   transmitter_init(); ​                                    // init the transmitter.
-  while (!(buttons_read() & BUTTONS_BTN1_MASK)) {         // Run continuously until BTN1 is pressed.+  while (!(buttons_read() & BUTTONS_BTN3_MASK)) {         // Run continuously until BTN3 is pressed.
     uint16_t switchValue = switches_read() % FILTER_FREQUENCY_COUNT; ​ // Compute a safe number from the switches.     uint16_t switchValue = switches_read() % FILTER_FREQUENCY_COUNT; ​ // Compute a safe number from the switches.
     transmitter_setFrequencyNumber(switchValue); ​         // set the frequency number based upon switch value.     transmitter_setFrequencyNumber(switchValue); ​         // set the frequency number based upon switch value.
milestone_3_task_2.1677698032.txt.gz ยท Last modified: 2023/03/01 12:13 by scott