Filip Stevanovic 2020/0039

Dependencies:   mbed

Revision:
1:f62564cb5261
Parent:
0:569d2e559397
Child:
2:67f18997ff0d
--- a/main.cpp	Sat Nov 13 08:28:59 2021 +0000
+++ b/main.cpp	Sat Nov 13 08:44:54 2021 +0000
@@ -62,6 +62,8 @@
     }
 }
 
+////////////////////////////////////////////////////////
+//Made on last test thus minimal commenting
 //Show digit on display
 void SegDisp (int num){
     switch(num){
@@ -93,6 +95,7 @@
     select = 0b10;
     wait_ms(ArbitraryWaitPeriod);
 }
+////////////////////////////////////////////////////////
 
 //Main
 int main(){
@@ -104,7 +107,7 @@
     //Main Loop
     while(1){
         //Pooling Pot1 i Pot2
-        buzzer=pot1*0.5f; //Arbitrarno deljenje sa 2 jer je apsolutno isto da li je duty 0.25 ili 0.75
+        buzzer=pot1*0.5f; //Arbitrary division by 2 as it is apsolutely same if duty is .25 or .75
         buzzer.period_us(k*pot2+n); //Linearise  frequency from 20Hz to 20kHz 
         
         //Print Pot1 to Display