Introduction
Introduction Statistics Contact Development Disclaimer Help
2019-02-04
__P_r_o_g_r_a_m_m_i_n_g__a_r_d_u_i_n_o_s__w_i_t_h_o_u_t__a_n__I_D_E_
o on my OpenBSD box there has been an arduino package that did not
se the Java IDE for programming an arduino or such clones. It came
ith a BSDMakefile and the toolchain and you could just run make /
ake upload to programm your device.
ut alas, the core libs have been outdated for quite a while. Running
ool libs like the fastled.io library was just not possible. Now the
ackage has been updated 'recently' to newer core libs. But the
akefile has been purged too!
fter some poking I found the commit message of the port stating that
t now uses the arduino-makefile port, which is a general project for
uilding arduino code with a GNU Makefile.
his does include a 'serial monitor' and easy configuration, way
asier than before!
o a simple makefile for a fastled demo looks like this:
''
RDMK_DIR=/usr/local/share/arduino-makefile
OARD_TAG = uno
RDUINO_LIBS = FastLED
SER_LIB_PATH = /home/ckeen/arduino/libs/
ONITOR_BAUDRATE = 115200
ONITOR_PORT = /dev/cuaU0
nclude ${ARDMK_DIR}/Arduino.mk
''
nd I have cloned the fastled lib into my $HOME/arduino/libs before.
n the directory beside the makefile a single .ino file is needed and
uilt automatically with a 'make upload'. This approach works nicely!
here are two caveats on OpenBSD / with arduino-makefile:
- add yourself to the dialer group, for getting access to the
/dev/cuaU0 device.
- the makefile does not do any preprocessing
like the arduino IDE, so you will need to rearrange the sources
of most sketches a bit to have the functions defined in the right
order (or add forward declarations)
can live with both and developing has been a charm with it!
__References________________________________________________________
You are viewing proxied material from vernunftzentrum.de. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.