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.
Revision 0:19b982ea0416, committed 2015-01-28
- Comitter:
- bulmenwt
- Date:
- Wed Jan 28 07:53:32 2015 +0000
- Commit message:
- a
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/LM75B.lib Wed Jan 28 07:53:32 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/neilt6/code/LM75B/#7ac462ba84ac
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Wed Jan 28 07:53:32 2015 +0000
@@ -0,0 +1,26 @@
+/*M0-BOARD LPC11U24 VERSION 1.0 WF 01_2015
+BULME Graz / Elektronik
+
+RGB - LED
+
+*/
+
+#include "mbed.h"
+PwmOut g(p5); // Definition LED grün, PWM
+PwmOut b(p34); // Definition LED blau, PWM
+PwmOut r(p36); // Definition LED rot, PWM
+AnalogIn poti(p15); // Definition Analogeingang, POTI
+
+int main()
+{
+ r.period(0.001); // PWM-Periode = 1ms
+ while(1)
+ {
+ // ******************** Einlesen der Spg. Am Potentiometer
+ // ************ Wertebereich von g: 0 <= g <= 1, float
+ g=poti.read();
+ b=1; // LED off
+ r=1; // LED off
+ wait (0.01); // ***** Warte 10ms
+ }
+}
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Wed Jan 28 07:53:32 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/552587b429a1 \ No newline at end of file