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
| // https://github.com/kelu124/pic0rick/blob/main/software/rp2040_shell/main.c | |
| // template console how to get command line from usb then process | |
| // example: loco speed 15 4 -- set loco speed address 15 to 4 | |
| // k | |
| #include <pico/stdio_usb.h> | |
| #include <string.h> | |
| #include <stdio.h> | |
| typedef void (*command_func_t)(const char *args); |
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
| /* | |
| touch demo for pico rp2040 | |
| cmake_minimum_required(VERSION 3.13) | |
| set(PICO_SDK_PATH "/home/sonny/pico/pico-sdk") | |
| set(PICOTOOL_FETCH_FROM_GIT_PATH "/home/sonny/pico/picotool") | |
| set(PICO_BOARD waveshare_rp2040_zero CACHE STRING "Board type") | |
| include(/home/sonny/pico/pico-sdk/external/pico_sdk_import.cmake) | |
| project(main C CXX ASM) |
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
| demo to connect flutter to picow using udp | |
| ////////////////////main.dart | |
| import 'package:flutter/material.dart'; | |
| import 'dart:io'; | |
| RawDatagramSocket? socket; | |
| void main() async { |
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
| /* | |
| * | |
| * demo of pico using pca9685 without library | |
| * this is for 2 rc servo | |
| * verified with pulseview march 4, 2024 | |
| * 16 bit register content below | |
| 1490 us ------ center | |
| on 0x0000 | |
| off 0x013B |
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
| //////////////readme.txt | |
| when using flutter syntax view to view | |
| source file, don't forget to replace dollar sign | |
| so the code text will have multiple colors | |
| nmra dcc decoder encoder | |
| this is my project to generate and encode nmra | |
| dcc pulses for model train. google nmra dcc |
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
| demo of pico decoding nes gamepad | |
| demo of pico issuing irq to main program | |
| main program responds and clears the irq | |
| source file from https://codeberg.org/chipfire/rppico-pio-gamepad | |
| /**************************** | |
| * gptest.c | |
| **************************/ |
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
| demo of nes gamepad using pico w bluetooth | |
| source from https://codeberg.org/chipfire/rppico-bt-gamepad | |
| /**************************** | |
| * bt_gamepad.c | |
| **********************/ | |
| /** | |
| * Copyright (c) 2023 Raspberry Pi (Trading) Ltd. | |
| * |
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 demo of usb keyboard | |
| no matrix keyboard, 1 key per pico gpio | |
| source from https://github.com/PhilboBaggins/pico-keys | |
| tested good with switches | |
| /************************ | |
| * PicoKeysExample.c | |
| ***********************/ | |
| #include <ctype.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
| import 'package:flutter/material.dart'; | |
| import 'package:flutter_syntax_view/flutter_syntax_view.dart'; | |
| import 'package:get/get.dart'; | |
| import './dark_light.dart'; | |
| void main() { | |
| runApp(MaterialApp(home:MyApp(), | |
| debugShowCheckedModeBanner:false));} | |
| class MyApp extends StatelessWidget{ |
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
| // | |
| // pio_minimal.c | |
| // demo for minimal pio | |
| // pio initialize is in main | |
| // you normally see pio init in .pio file | |
| // | |
| #include <stdio.h> | |
| #include "pico/stdlib.h" | |
| #include "hardware/pio.h" |
NewerOlder