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 <Arduino.h> | |
#include <IRremoteESP8266.h> | |
#include <IRsend.h> | |
#include <U8g2lib.h> | |
#ifdef U8X8_HAVE_HW_I2C | |
#include <Wire.h> | |
#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
const struct rcc_clock_scale rcc_clock_config[RCC_CLOCK_CONFIG_END] = { | |
[RCC_CLOCK_CONFIG_LSI_32KHZ] = { | |
/* 32khz from lsi, scale2, 0ws */ | |
.sysclock_source = RCC_LSI, | |
.hpre = RCC_CFGR_HPRE_NODIV, | |
.ppre = RCC_CFGR_PPRE_NODIV, | |
.flash_waitstates = FLASH_ACR_LATENCY_0WS, | |
.voltage_scale = PWR_SCALE2, | |
.ahb_frequency = 32000, | |
.apb_frequency = 32000, |
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 <stdint.h> | |
#include <stdio.h> | |
#include <stddef.h> | |
#include <string.h> | |
#include <libopencm3/stm32/rcc.h> | |
#include <libopencm3/stm32/gpio.h> | |
#include <libopencm3/stm32/g0/syscfg.h> | |
#include <libopencm3/stm32/g0/usart.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
#include "systick.h" | |
volatile uint32_t systickCount = 0; | |
// ******* Systick_init ******* | |
// Initializes the SysTick interrupt timer. | |
// Inputs: none | |
// Outputs: none | |
void Systick_init(void) | |
{ |
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 <iostream> | |
#include <string> | |
#include <assert.h> | |
class Animal | |
{ | |
public: | |
double age; | |
}; |
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
int numDays(int month, int year) | |
{ | |
if ( (month == 1 ) || (month == 3 ) || (month == 5 ) || (month == 7 ) || (month == 8 ) || | |
(month == 10 ) || (month == 12 ) ) | |
{ | |
return 31; | |
} | |
if (month == 2) | |
{ | |
if ( year % 4 != 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
#include <libopencm3/stm32/rcc.h> | |
#include <libopencm3/stm32/gpio.h> | |
#define PORT_LED GPIOE | |
#define PIN_LED GPIO9 | |
uint16_t outBits[] = { GPIO9, GPIO10, GPIO11, GPIO12, GPIO13, GPIO14, GPIO15, GPIO8 }; | |
static void gpio_setup(void) | |
{ |
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
/********* Lab6 ******* | |
* Course: PROG1955-1 | |
* Title: Lab 6 | |
* Purpose: Store the last name and first name of students in a dynamic | |
* structure using a linked list | |
* Date: 2018-11-10 | |
* Author: Christopher Slothouber | |
* File: Lab6.c | |
*/ |
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
/********* Lab6 ******* | |
* Course: PROG1955-1 | |
* Title: Lab6 | |
* Purpose: Store the last name and first name of students in a dynamic | |
structure using a linked list | |
* Date: 2018-11-10 | |
* Author: | |
* File: Lab6.c | |
*/ |
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 <SPI.h> | |
#include "RF24.h" | |
//#include <SoftwareSerial.h> | |
#include <avr/sleep.h> | |
// Set packet data structure | |
struct data_t { | |
byte stn_id; | |
byte msg_type; | |
unsigned short msg_value; |
NewerOlder