Arduino ed

I'm having the cheap clone from Maker Factory, with an atmega328p. Trying to work on Manjaro linux.

Arduino IDE ed

Setup ed

Giving upload permission to normal user:

sudo chmod a+rw /dev/ttyACM0

Serial monitor ed

Had Java errors first, because my system used an outdated version of java.

check
archlinux-java status
(listed two versions)

set
sudo archlinux-java set java-10-openjdk

Some goals ed

0.98' OLED display ed

In IDE, install libraries:

Connect to random pins and edit code accordingly:

#define OLED_MOSI  11 // -> D1
#define OLED_CLK   12 // -> D0
#define OLED_DC     9
#define OLED_CS     8
#define OLED_RESET 10

wifi: ESP8266 ed

Connection... 3V3, GND, D0, D1...

Test
Can connect the RESET to the GND pin on arduino (going into "communication mode"), then open the serial monitor, 115200 baud, NL+CR, type
AT
should respond with
OK

Libraries
???

low level ed

Pins ed

arduino  atmega
 D0       D0
 ...
 D7       D7
 D8       B0
 ...
 D13      B5
 ADC0     ADC0
 ...
 ADC5     ADC5

upload ed

compile
change avr-gcc parameter (in Makefile) to
-mmcu=atmega328p

flashing an image
avrdude -p atmega328p -P /dev/ttyACM0 -c arduino -U flash:w:main.hex
(requires arduino ide to be running, so that the device exists... or maybe
sudo modprobe cdc-acm
might install the right kernel driver?)