Go Down

Topic: Key macros for entering code (Read 919 times) previous topic - next topic

dougp

Since entering stuff like "Serial.print(9600);" and "digitalWrite(name,state);" is so tedious and error prone I've taken to using a keyboard macro to enter these things.

You can find it at programming.de, name 'multi clipboard'.

There are three clipboards available and you can enter nine strings of pre-programmed text in each.

One thing I like about it is the key definitions survive shutdown/restart.

Paul_KD7HB

For me, it's easier to open a second IDE window and copy lines from a working program to the new program.

Paul

dougp

For me, it's easier to open a second IDE window and copy lines from a working program to the new program.
I've since shifted over to doing that too. With keeping my head in the project and all the stuff I'm trying to learn about the Arduino and C++ (I've added so many bookmarks in the last two months I've had to make subfolders for them) :smiley-eek-blue: , it's too much to memorize which string goes with which macro.

robtillaart

I changed my ....\basics\bareminimum.ino project in the samples to my wishes.

The IDE takes this sketch as a template when starting a new project.

works like a charm ...
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

dougp


Go Up