Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed FootileSoftware
Diff: Footile.h
- Revision:
- 1:7fb4f7e80d92
- Parent:
- 0:03cdee95fb5a
--- a/Footile.h Wed May 30 02:34:33 2018 +0000
+++ b/Footile.h Sun Mar 08 06:27:52 2020 +0000
@@ -34,6 +34,7 @@
DigitalOut _led2; // for debugging
DigitalOut _led3; // for debugging
DigitalOut _trg;
+ //PwmOut _trg;
AnalogIn _prssr;
Serial _bt;
DigitalOut _btDummy1; // LPC11U24 does not support flow control
@@ -42,21 +43,34 @@
Ticker _trans;
Ticker _viber;
+ Ticker _pwmviber;
int _volumeBuf;
+ int _SquareVolume;
+ int _C_Volume;
float _sens;
char _buf[5];
int _countSize;
int _on;
+ int count_u;
+ int count_pwm;
+ int _trg_flag;
+ int count_led2;
bool ChangeFlag;
+ bool ChangeFlag2;
+ bool SteadyON;
+ bool VibeON;
+ bool SetDutyMode;
+ bool leafMode;
bool SteadyMode;
bool SinewaveMode;
bool CorrespondMode;
bool ConnectCheck;
bool snowMode;
bool grassMode;
+ bool gravelMode;
void _onReceive(void);
void _beat(void);
@@ -65,6 +79,8 @@
void _modeChange(unsigned short c);
void VibeTimer();
void OnVibe(const float* wave, int size);
+ void PwmDuty(int d);
+ void PwmVibe();
};