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: LaosMotion/pins.h
- Revision:
- 1:f5ac63519541
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/LaosMotion/pins.h Wed Mar 05 06:14:02 2014 -0800 @@ -0,0 +1,35 @@ +#include <mbed.h> + +// Externs: stepper IO +extern DigitalOut enable; +extern DigitalOut xdir; +extern DigitalOut xstep; +extern DigitalOut ydir; +extern DigitalOut ystep; +extern DigitalOut zdir; +extern DigitalOut zstep; +extern DigitalOut estep; +extern DigitalOut edir; +extern PwmOut pwm; + +// leds +extern DigitalOut led1,led2,led3,led4; + +// Inputs +extern DigitalIn xhome; +extern DigitalIn yhome; +extern DigitalIn zmin; +extern DigitalIn zmax; + + +// laser +extern PwmOut pwm; // O1: PWM (Yellow) +extern DigitalOut laser_enable; // O2: enable laser +extern DigitalOut o3; // 03: NC + +#define LASER_PIN p5 // note: we define the laser pin here and do not allocate the laser DigitalOut() +extern DigitalOut *laser; // O4: LaserON (White), do not statically allocte: because this will cause the laser to switch on at reboot + + +// Analog in/out (cover sensor) + NC +extern DigitalIn cover; \ No newline at end of file