Skip to content
Permalink
Browse files

+ analogRead

  • Loading branch information...
anakod committed May 14, 2015
1 parent 2888e3d commit b7d44d0f701b653440594d0f65b40a50a1bf1444
Showing with 7 additions and 0 deletions.
  1. +5 −0 Sming/SmingCore/PWM.cpp
  2. +2 −0 Sming/SmingCore/PWM.h
  3. BIN Sming/compiler/lib/libsming.a
@@ -142,3 +142,8 @@ void noAnalogWrite(uint8_t pin)
{
EspPWM.noAnalogWrite(pin);
}

uint16_t analogRead(uint16_t pin)
{
return system_adc_read();
}
@@ -63,3 +63,5 @@ extern DriverPWM EspPWM;
// Arduino like style
void analogWrite(uint8_t pin, int duty);
void noAnalogWrite(uint8_t pin);

uint16_t analogRead(uint16_t pin);
BIN +1.48 KB (100%) Sming/compiler/lib/libsming.a
Binary file not shown.

0 comments on commit b7d44d0

Please sign in to comment.
You can’t perform that action at this time.