SEDO subject project

Dependencies:   ds3231 mbed-rtos mbed DHT

Revision:
12:1d544cdab2cf
Parent:
10:f14f47225091
--- a/motor_cnt.cpp	Mon May 08 18:30:12 2017 +0000
+++ b/motor_cnt.cpp	Mon May 15 18:30:20 2017 +0000
@@ -1,12 +1,12 @@
 #include "mbed.h"
 #include "motor_cnt.h"
 
-static PwmOut m_speed(D5);
-static DigitalOut m_direction(D4);
-static uint8_t speed_current = 0;
-static uint8_t direction_current = 0;
+PwmOut m_speed(D5);
+DigitalOut m_direction(D4);
+uint8_t speed_current = 0;
+uint8_t direction_current = 0;
 
-int set_motor_speed(uint8_t speed)
+int set_motor_speed(float speed)
 {
     m_speed = speed;
     speed_current = speed;