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
public static class LED_STATIC_TABLE{ | |
public static int[] BLACK = {0,0,0}; | |
public static int[] RED = {255, 0 ,0 }; | |
public static int[] BLUE = {0,0,255}; | |
public static int[] GREEN = {0,255,0}; | |
public static int[] YELLOW = {255, 255, 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
import processing.io.*; | |
byte addr = 0x74; | |
I2C i2c; | |
byte ISSI_ADDR_DEFAULT = 0x74; | |
byte ISSI_REG_CONFIG = 0x00; | |
byte ISSI_REG_CONFIG_PICTUREMODE = 0x00; | |
byte ISSI_REG_CONFIG_AUTOPLAYMODE = 0x08; |
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
/** | |
* | |
* @Author: Hannes Paulsson, Mikael André | |
* | |
* STM32F303 | |
* RX-> PD8 | |
* TX-> PD9 | |
* Baud 9600 (standard) |
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
/* | |
Interrupt handle and task for PWM-in. | |
@Author: Hannes Paulsson, Ramon Rodriguez | |
Channels on controller: | |
1 : Roll | |
2 : Thrust | |
3 : Pitch | |
4 : Yaw |
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
/* | |
Interrupt handle and task for PWM-in. | |
@Author: Hannes Paulsson, Ramon Rodriguez | |
Channels on controller: | |
1 : Roll | |
2 : Thrust | |
3 : Pitch | |
4 : Yaw |
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
/** | |
* STM32F303 | |
* RX-> PD8 | |
* TX-> PD9 | |
* Baud 9600 (standard) | |
* 0.1 | |
*/ | |
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
/** | |
* STM32F303 | |
* RX-> PD8 | |
* TX-> PD9 | |
* Baud 9600 (standard) | |
* 0.1 | |
*/ | |
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
/* | |
* snake.ino | |
* | |
* A simple snake game. | |
* When a player hits the wall or the tail of the snake, the score flashes on the screen. | |
* | |
* This code is written for use with a 8x8 led matrix, controlled by a MAX7219 | |
* | |
* Remember to download and include LedControlMS from |
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 "LedControlMS.h" | |
#include <math.h> | |
#include <stdlib.h> | |
#include <stdbool.h> | |
#define NBR_MTX 2 | |
LedControl lc=LedControl(12,11,10, NBR_MTX); |
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 "LedControlMS.h" | |
#include <math.h> | |
#include <stdlib.h> | |
#include <stdbool.h> | |
#define NBR_MTX 2 | |
LedControl lc=LedControl(12,11,10, NBR_MTX); | |
int speed = 100; |