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.
Arduino.cpp
- Committer:
- kenken0721
- Date:
- 2017-08-31
- Revision:
- 0:9e1fa4cfbc00
- Child:
- 1:bb86cdfb0586
File content as of revision 0:9e1fa4cfbc00:
#include "Arduino.h"
#include "mbed.h"
/*
Flasher::Flasher(PinName pin) : _pin(pin) {
_pin = 0;
}
*/
long map(long x, long in_min, long in_max, long out_min, long out_max) {
return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min;
}