This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
############################################################################## | |
# | |
# Copyright (C) 2016 Zubeen Tolani <ZeekHuge - [email protected]> | |
# | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions | |
# are met: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h>#include <stdio.h> | |
#include <stdlib.h> | |
#include <errno.h> | |
#include <fcntl.h> | |
#include <sys/mman.h> | |
#include <errno.h> | |
#include <stdint.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <sched.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
struct _HEXZ { | |
unsigned value; | |
unsigned len; | |
_HEXZ(int i, int l = 2): value(i), len(l) {} | |
}; | |
inline Print &operator <<(Print &obj, const _HEXZ &arg) { | |
if ( arg.len > 1 && arg.value < 0x10 ) obj.print('0'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef FABOOH | |
#include <Streaming.h> | |
#include "ringbuffer_simple.h" | |
#define sizeofs(a) sizeof((a))/sizeof((a[0])) | |
#else | |
serial_usart_isr_t<115200, CPU::frequency, TX1_PIN, RX1_PIN> Serial1; | |
USART_IRQHandler(1, Serial1) | |
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
ws2812x_dma_timer.ino - DMA/TIMER based ws281x/neopixel routines | |
Generate a ws281x compatible pulse train using PWM timer and DMA | |
provided duty cycle data. Connect pin PA1 to the DIN of a ws281x | |
led strip and watch the animation. | |
2018-07-07 - RRK simplified using RGB values, compute T0/T1 based on F_CPU | |
2018-07-05 - RRK reworked to avoid interrupt | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* blink.cpp - simple fabooh blink | |
*/ | |
#include <fabooh.h> | |
#include <main.h> | |
#define bit_set(r,b) (r) |= (b) | |
#define bit_clr(r,b) (r) &= ~(b) | |
#define bit_tst(r,b) (r) & (b) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* zero_print - print_base<> template example | |
*/ | |
#include "print_t.h" | |
void setup() { | |
Serial.begin(115200); | |
delay(2000); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Makefile - blinkasm.elf | |
# | |
# Author: Rick Kimball | |
# email: [email protected] | |
# Version: 1.04 Initial version 10/21/2011 | |
# | |
APP = blinkasm | |
MCU ?= msp430g2553 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
------------------------------------------------------------------------- | |
-- nco.vhd - Numerically Controlled Oscillator | |
-- | |
-- Author: Rick Kimball [email protected] | |
-- Date: 10/19/2017 | |
-- Version: 3 | |
-- | |
-- vim: set ts=3 sw=3 expandtab | |
-- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* nco.cpp - toggle pins at 60Hz and 50Hz using a 50kHz timer clock | |
*/ | |
#include <fabooh.h> | |
#include <main.h> | |
#include <nco.h> | |
RED_LED RED; | |
GREEN_LED GREEN; |
NewerOlder