#Atmel XPlained PRO Zigbit + ATRF212B-0-U Hookup Guide
- GND
- nRST
| /** | |
| * Recursive struct parser for parsing string fields in go structure | |
| * Copyright 2017 Ryan Kurte | |
| * Released under the MIT License (https://choosealicense.com/licenses/mit/) | |
| */ | |
| package parser | |
| import ( | |
| "log" | 
| # A helper makefile for split master and gh-pages deployment with Hugo | |
| # See https://gohugo.io/tutorials/github-pages-blog/#deployment-via-gh-pages-branch | |
| # You must run: | |
| # git checkout --orphan gh-pages | |
| # git reset --hard | |
| # git commit --allow-empty -m "Initializing gh-pages branch" | |
| # git push upstream gh-pages | |
| # git checkout master | |
| # prior to using this makefile | 
| ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev | |
| update_config=1 | |
| # Config for headless linux devices on UoA WiFi | |
| network={ | |
| ssid="UoA-WiFi" | |
| proto=RSN | |
| key_mgmt=WPA-EAP | |
| pairwise=CCMP | |
| auth_alg=OPEN | 
| // In embedded, use explicit integer sizes | |
| #include <stdint.h> | |
| // That way you know what you are using and where it will overflow | |
| // Includes also come first in any C file | |
| // Headers exist as prototypes to let the compiler know that it WILL be able to do something later on | |
| // So that when you call this function | |
| void function(uint8_t data1[], uint8_t length, uint8_t data2[]); | |
| // It knows it should find this implementation somewhere else | 
| #!/bin/bash | |
| # https://gist.github.com/ryankurte/bc0d8cff6e73a6bb1950 | |
| set -e | |
| if [ "$#" -ne 3 ] && [ "$#" -ne 4 ]; then | |
| echo "Usage: $0 CA NAME ORG" | |
| echo "CA - name of fake CA" | |
| echo "NAME - name of fake client" | |
| echo "ORG - organisation for both" | 
| # Example .dkrenv file | |
| IMAGE=ryankurte/docker-arm-embedded | 
| # Docker container for python apps | |
| FROM debian:stable | |
| RUN apt-get update && apt-get install -y libc6 libc6-dev \ | |
| python-setuptools\ | |
| python-pip | |
| RUN mkdir -p /usr/src/app | |
| WORKDIR /usr/src/app | 
| barcode_width = 113; | |
| barcode_height = 30; | |
| barcode_depth = 2; | |
| module_width = 1; | |
| buffer = 4; | |
| barcode = [ | |
| 0, 0, 0, 0, 0, 0, 0, 0, 0, //quiet |