Skip to content

Instantly share code, notes, and snippets.

@dragonlock2
dragonlock2 / RF24.c
Created August 20, 2019 08:42
RF24 library for Atmel Studio 7
/*
* RF24.c
*
* Adapted from TMRh20's RF24 library
*
* Created: 7/3/2019 1:53:45 AM
* Author: MatthewTran
*/
#include <clock_config.h>
@dragonlock2
dragonlock2 / Constants.h
Created August 19, 2019 22:37
Code for Nunchuk remote
//RGB setup
#define R 9 //all are pwm pins
#define G 6
#define B 5
//RF24 stuff
#define RF24_INT 3 //INT1
#define RF24_CE 7
#define RF24_CSN 10
@dragonlock2
dragonlock2 / light_to_tfrecord.py
Created August 19, 2019 09:44
Converts LabelImg files to TFRecord
import tensorflow as tf
import os
from lxml import etree
from tf.models.research.object_detection.utils import dataset_util
from tf.models.research.object_detection.utils import label_map_util
flags = tf.app.flags
flags.DEFINE_string('annotations', '', 'Path to LabelImg XMLs')
flags.DEFINE_string('pbtxt', '', 'pbtxt mapping id to name')