Skip to content

Instantly share code, notes, and snippets.

View moomdate's full-sized avatar
🍋
~/.profile

moomdate moomdate

🍋
~/.profile
  • kanchanaburi
View GitHub Profile
#include <SPI.h>
#include "LedMatrix.h"
#define NUMBER_OF_DEVICES 1
#define CS_PIN D8
LedMatrix ledMatrix = LedMatrix(NUMBER_OF_DEVICES, CS_PIN);
void setup() {
Serial.begin(115200); // For debugging output
ledMatrix.init();
#include <SPI.h>
#include "LedMatrix.h"
#define NUMBER_OF_DEVICES 1
#define CS_PIN D8
LedMatrix ledMatrix = LedMatrix(NUMBER_OF_DEVICES, CS_PIN);
void setup() {
Serial.begin(115200); // For debugging output
ledMatrix.init();
#include <ESP8266WiFi.h>
#include <WiFiClientSecure.h>
#define pin1 D0
#define pin2 D1
#define pin3 D2
const char* ssid = "Ollydbg";
const char* password = "11223344";
String thingKey = "xxxxxx";
const char* host = "api.thingspeak.com";
const int httpsPort = 443;
#include <SPI.h>
#include "LedMatrix.h"
#include "ClosedCube_HDC1080.h"
ClosedCube_HDC1080 hdc1080;
#define NUMBER_OF_DEVICES 1
#define CS_PIN D8
LedMatrix ledMatrix = LedMatrix(NUMBER_OF_DEVICES, CS_PIN);
void setup() {
Serial.begin(115200); // For debugging output
#include <ESP8266WiFi.h>
#include <WiFiClientSecure.h>
#include <Wire.h>
#include "ClosedCube_HDC1080.h"
ClosedCube_HDC1080 hdc1080;
int StepCount = 1;
String thinkKey = "HIMSN43MQO0YURAJ";
const char* ssid = "kk";
const char* password = "12345678";
const char* host = "api.thingspeak.com";
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
entity Counter is
Port ( clk : in STD_LOGIC;
reset : in STD_LOGIC;
Outport : out STD_LOGIC_VECTOR (6 downto 0);
Outport2 : out STD_LOGIC_VECTOR (6 downto 0));
end Counter;
architecture Behavioral of Counter is
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
entity Counter is
Port ( Clk : in STD_LOGIC;
Enable : in STD_LOGIC;
UpDown : in STD_LOGIC;
Reset : in STD_LOGIC;
Output : out STD_LOGIC_VECTOR (6 downto 0));
@moomdate
moomdate / gg.ino
Last active September 23, 2017 14:03
gg
for(int i = 0; i < data; i++){
for(int j = 0; j < data; j++){
if(!(j<2 || i<2 || i>=data-2 || j>=data-2)){
System.out.print(" X");
}else{
System.out.print(" ");
}
}
/*
This example is meant to be used as a starting point
for working with Anto.io services
2017/06/17
by Anto.io team
*/
#include <AntoIO.h>
#include <stdio.h>
#include <string.h>
#define lineLR 2 // 0xa,0d
#define maxSizeInLine 41
#define sectorSize maxSizeInLine*4
#define maxLine 97
char data[maxLine][maxSizeInLine]; // line * char num
char buffer;
int maxString = 50;