Let's see how they compare with a minimal example: run an image that installs curl and pulls the Holberton homepage
Pull the ubuntu:16.04
image
# simple makefile for avr-gcc projects | |
# what is the final binary called | |
PROGRAM = ddsvfo | |
# flags to pass to the C compiler | |
# -mmcu should be set to the CPU type | |
# -DF_CPU should be the clock speed in Hz | |
# you can add additional -D statements which work just like #define in the code | |
CFLAGS = -Wall -I. -g -Os -mmcu=atmega168 -DF_CPU=16000000 |
// I2C to USB Adapter using Arduino | |
// by Bernhard Kraft <[email protected]> | |
/** | |
* This sketch can get loaded onto an Arduino to use it as USB to I2C Adapter. | |
* It uses the Wire library. So take a look at the documentation of the Wire | |
* libarary about the pins being used as SDA/SCL. For most Arduino boards this | |
* will be analog input pin 4 for SDA and analog input pin 5 for SCL. | |
* | |
* On the USB side the default serial link of the Arduino is used. A protocol |
#!/usr/bin/env python | |
# -*- charset utf8 -*- | |
import pyaudio | |
import numpy | |
import math | |
import matplotlib.pyplot as plt | |
import matplotlib.animation | |
RATE = 44100 |
This instructions covers how to connect via openocd
on linux platform. And assuming you have the STLINKv2 hardware dongle. And that you have wired it up correctly, to the aixun t3a's debugging port.
NOTE:
+3v3
power pin from the SWD port on the STLINKv2. And just tie the GNDs together. To keep the ground reference only. Then have the target DUT (the mcu in the aixun) being powered independantly by itself. Just being aware that this is more risky or delicate situation than when passively powering from the STLINKv2 in the safer(version 1) | |
#Kicad 7 | |
# 2-layer, 1oz copper | |
(rule "Minimum Trace Width (outer layer)" | |
(constraint track_width (min 5mil)) | |
(layer outer) | |
(condition "A.Type == 'track'")) | |
(rule "Minimum Trace Spacing (outer layer)" |