This file contains hidden or 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
/* | |
Analog Input | |
Demonstrates analog input by reading an analog sensor on analog pin 0 and | |
turning on and off a light emitting diode(LED) connected to digital pin 13. | |
The amount of time the LED will be on and off depends on the value obtained | |
by analogRead(). | |
The circuit: | |
- potentiometer |
This file contains hidden or 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 <Wire.h> | |
#include <Adafruit_Sensor.h> | |
#include <Adafruit_ADXL345_U.h> | |
// Odredi pinove za LED diode | |
#define LED_ZELENA 4 | |
#define LED_ZUTA 3 | |
#define LED_CRVENA 2 | |
// Postavke jačine potresa |
This file contains hidden or 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
/* | |
** simple hex packet capture | |
** packet content will be printed from right to left | |
** 8 lines of 64-bits (64 bytes) | |
** adjust skip_bytes to see other parts of a longer packet | |
*/ | |
`default_nettype none | |
module top_eth_hex_demo | |
#( |
This file contains hidden or 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
/** | |
* This is a demo to be used with Good Display 2.7 touch epaper | |
*/ | |
#include <stdio.h> | |
#include "freertos/FreeRTOS.h" | |
#include "freertos/task.h" | |
#include "FT6X36.h" | |
#include "driver/gpio.h" |
This file contains hidden or 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
`default_nettype none | |
module top ( | |
input clk48, | |
output rgb_led0_r, | |
output rgb_led0_g, | |
output rgb_led0_b, | |
output gpio_0, | |
input gpio_a0, | |
inout scl, | |
inout sda |
This file contains hidden or 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 <cmath> | |
#include "pico/stdlib.h" | |
#include "hardware/watchdog.h" | |
#include "hardware/structs/dma.h" | |
#include "WS2812.hpp" | |
//#define USE_DMX_OUTPUT | |
#define USE_DMX_INPUT | |
#define USE_ASYNC_INPUT |
This file contains hidden or 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
module rgb888 ( | |
input logic clock_p, | |
input logic clock_n, | |
input logic [31:0] image_data, | |
input logic image_data_enable, | |
output logic [47:0] rgb, | |
output logic [1:0] rgb_enable | |
); | |
// Fifo Memory Order |
This file contains hidden or 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
module top( | |
output green_led_d7, | |
output orange_led_d8, | |
output red_led_d5, | |
output yellow_led_d6, | |
inout tuner_sda, | |
output tuner_scl, | |
inout rtc_sda, |
This file contains hidden or 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
module top(input clk_25mhz, | |
input cam_sda, | |
input cam_scl, | |
input gpio_sda, | |
input gpio_scl, | |
output [6:0] nc, | |
input ftdi_txd, wifi_txd, | |
output ftdi_rxd, wifi_rxd, | |
output ftdi_txden, | |
input cam_enable_gpio, |
This file contains hidden or 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
// 跳ねるLED by KenKen | |
// https://github.com/KenKenMkIISR/Bouncing-LED | |
// Arduino版 | |
#include <Adafruit_NeoPixel.h> | |
#define PIN 2 //信号端子のピン番号 | |
#define LED_NUM 150 //LEDの総数 | |
// #define REVERSE //有効にすると逆向きに落下 |
NewerOlder