The Plugin for AVR on CMD!!
The cmd-avr is just what it sounds like The Plugin which edits the Makefile on cmd.
Text Editor Requirements
- Must Have A Console
Thats All
User Requirements
- Patience
That's All Again
System Requirements
- You need to install Golang
Thats All Again(2)
Installation is a little bit tricky but that's where the user requirements come. Steps First Of All ,you need a common Makefile, For Windows users Who are using WinAVR or has a Makefile for avr-gcc can do this :=
-
Open up your AVR Workspace,(this can be "C:\AVRSketchbook for mine)
-
Save the Makefile into the Workspace
-
If Your Workspace isn't C:\AVRSketchbook,you need to change it,to do that read the custom workspace section
-
Now create a folder called bin.
-
cd into that bin folder by typing cd C:\bin (if you created it in the C Drive)
-
Now Build the go file using go build the\path\where\you\installed\the\go\file.go
-
Setup the %PATH% Environment Variable by typing
set PATH=%PATH%;C:\bin
And that's it
If you are a Notepad++ User then you can execute the command in Notepad++ itself(Sorry,i didn't try other text editors)!
- Follow this guide http://vpapanik.blogspot.in/2012/08/using-winavr-with-notepad.html
- Now create another Macro called AVR New Project the same way.
- Inside it, type
cls
avr
- That's it save it and enjoy
- Open the gofile before building it and add these changes
See these lines
op := "C:\AVRSketchbook\Makefile"
oe := "C:\AVRSketchbook\"+ ar
oa := "C:\AVRSketchbook"
Change it into the Avr Workspace you use like
op := "C:\AVRWork\Makefile"
oe := "C:\AVRWork\" + ar
oa := "C:\AVRWork"
Here AVRWork is just an example
Email me at planetoid128@gmail.com
Thanks to vpapanik on creating the blog
This is licensed under MIT-License