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.
Diff: Arduino.cpp
- Revision:
- 0:9e1fa4cfbc00
- Child:
- 1:bb86cdfb0586
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Arduino.cpp Thu Aug 31 10:26:20 2017 +0000
@@ -0,0 +1,11 @@
+#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;
+}
\ No newline at end of file