Lets you control the FRDM-K64F board over the PC using the GUI software (https://github.com/navin-bhaskar/Controller) written in Python. To use the software, connect the FRDM-K64Fto your PC (via USB cable connected to USB port labelled as "open SDA") and start the software to control the FRDM-K64F. For more info on usage, please go to: http://navinbhaskar.blogspot.in/2013/02/arduino-controller-3.html
Dependencies: mbed
MbedPerAccess.h@0:7ce46d3f9f5d, 2014-08-08 (annotated)
- Committer:
- Navin
- Date:
- Fri Aug 08 02:27:42 2014 +0000
- Revision:
- 0:7ce46d3f9f5d
This application lets you control the FRDM-K64F Frdm board with a front end GUI software written in Python (https://github.com/navin-bhaskar/Controller)
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Navin | 0:7ce46d3f9f5d | 1 | /* |
Navin | 0:7ce46d3f9f5d | 2 | * This program is free software; you can redistribute it and/or modify |
Navin | 0:7ce46d3f9f5d | 3 | * it under the terms of the GNU General Public License as published by |
Navin | 0:7ce46d3f9f5d | 4 | * the Free Software Foundation; either version 2 of the License, or |
Navin | 0:7ce46d3f9f5d | 5 | * (at your option) any later version. |
Navin | 0:7ce46d3f9f5d | 6 | * |
Navin | 0:7ce46d3f9f5d | 7 | * This program is distributed in the hope that it will be useful, |
Navin | 0:7ce46d3f9f5d | 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
Navin | 0:7ce46d3f9f5d | 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
Navin | 0:7ce46d3f9f5d | 10 | * GNU General Public License for more details. |
Navin | 0:7ce46d3f9f5d | 11 | * |
Navin | 0:7ce46d3f9f5d | 12 | * You should have received a copy of the GNU General Public License |
Navin | 0:7ce46d3f9f5d | 13 | * along with this program; if not, write to the Free Software |
Navin | 0:7ce46d3f9f5d | 14 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
Navin | 0:7ce46d3f9f5d | 15 | * MA 02110-1301, USA. |
Navin | 0:7ce46d3f9f5d | 16 | * |
Navin | 0:7ce46d3f9f5d | 17 | */ |
Navin | 0:7ce46d3f9f5d | 18 | |
Navin | 0:7ce46d3f9f5d | 19 | /** |
Navin | 0:7ce46d3f9f5d | 20 | * \brief Implements the mbed perephiral access interface |
Navin | 0:7ce46d3f9f5d | 21 | * \author Navin Bhaskar |
Navin | 0:7ce46d3f9f5d | 22 | */ |
Navin | 0:7ce46d3f9f5d | 23 | |
Navin | 0:7ce46d3f9f5d | 24 | #ifndef _ARD_PER_ACCESS_H |
Navin | 0:7ce46d3f9f5d | 25 | #define _ARD_PER_ACCESS_H |
Navin | 0:7ce46d3f9f5d | 26 | |
Navin | 0:7ce46d3f9f5d | 27 | #include "PerAccess.h" |
Navin | 0:7ce46d3f9f5d | 28 | #include "error.h" |
Navin | 0:7ce46d3f9f5d | 29 | |
Navin | 0:7ce46d3f9f5d | 30 | #ifndef MBED |
Navin | 0:7ce46d3f9f5d | 31 | #define MBED /**< Build for mbed */ |
Navin | 0:7ce46d3f9f5d | 32 | #endif |
Navin | 0:7ce46d3f9f5d | 33 | |
Navin | 0:7ce46d3f9f5d | 34 | class MbedPerAccess : public PerAccess |
Navin | 0:7ce46d3f9f5d | 35 | { |
Navin | 0:7ce46d3f9f5d | 36 | public: |
Navin | 0:7ce46d3f9f5d | 37 | virtual uint digitalOut(uint pinNo, uint val); |
Navin | 0:7ce46d3f9f5d | 38 | virtual uint digitalIn(uint pinNo, uint * val); |
Navin | 0:7ce46d3f9f5d | 39 | virtual uint analogOut(uint pinNo, uint val); |
Navin | 0:7ce46d3f9f5d | 40 | virtual uint analogIn(uint pinNo, uint * outVal); |
Navin | 0:7ce46d3f9f5d | 41 | private: |
Navin | 0:7ce46d3f9f5d | 42 | |
Navin | 0:7ce46d3f9f5d | 43 | |
Navin | 0:7ce46d3f9f5d | 44 | static const uint _maxDigiOutPins = 25; /**< Maximun number of digital out pins */ |
Navin | 0:7ce46d3f9f5d | 45 | static const uint _maxDigiInPins = 25-4; /**< Maximum number of digital in pins */ |
Navin | 0:7ce46d3f9f5d | 46 | static const uint _maxAnInPins = 6; /**< Maximum number of ADC channels */ |
Navin | 0:7ce46d3f9f5d | 47 | static const uint _maxAnOutVal = 4096; /**< Maximum value that can be output by the ADC uint */ |
Navin | 0:7ce46d3f9f5d | 48 | |
Navin | 0:7ce46d3f9f5d | 49 | |
Navin | 0:7ce46d3f9f5d | 50 | |
Navin | 0:7ce46d3f9f5d | 51 | }; |
Navin | 0:7ce46d3f9f5d | 52 | |
Navin | 0:7ce46d3f9f5d | 53 | #endif |
Navin | 0:7ce46d3f9f5d | 54 |