sudo apt update
sudo apt full-upgrade
sudo reboot
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
| # A MicroPython program that scans all available I2C bus configurations on the Raspberry Pi Pico (RP2040 and RP2350), | |
| # cycling through high, standard, and low frequencies to detect and list connected I2C devices. | |
| # https://gist.github.com/vurdalakov/7e2aca81c067b879b906513838cf9af9 | |
| from machine import Pin, I2C | |
| count = 0 | |
| # RP2040 and RP2350A have 30 GPIOs; RP2350B has 48 GPIOs | |
| for i in range(0, 48, 2): |
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
| public static Boolean IsMsiRunning() | |
| { | |
| try | |
| { | |
| return Mutex.TryOpenExisting(@"Global\_MSIExecute", out _); | |
| } | |
| catch | |
| { | |
| return false; | |
| } |
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
| namespace Vurdalakov.YamlDotNetStringArrayConverter | |
| { | |
| using System; | |
| using YamlDotNet.Core; | |
| using YamlDotNet.Core.Events; | |
| using YamlDotNet.Serialization; | |
| using YamlDotNet.Serialization.NamingConventions; | |
| internal class Program |
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 <libopencm3/stm32/rcc.h> | |
| #include <libopencm3/stm32/gpio.h> | |
| #define LED_RCC RCC_GPIOB | |
| #define LED_PORT GPIOB | |
| #define LED_PIN1 GPIO0 | |
| #define LED_PIN2 GPIO7 | |
| #define LED_PIN3 GPIO14 | |
| void wait() |
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
| #!/bin/sh | |
| # Installing Tailscale to the Raspberry Pi | |
| # https://pimylifeup.com/raspberry-pi-tailscale/ | |
| # update the package list and any out-of-date packages | |
| sudo apt-get update && sudo apt-get -y upgrade | |
| # install needed packages | |
| sudo apt install lsb-release curl |
.pio\libdeps\seeed_wio_terminal\Seeed Arduino rpcWiFi\src\WebServer.cpp:31:10: fatal error: Seeed_mbedtls.h: No such file or directory
- Install Seeed_Arduino_mbedtls library (or search for
"seeed mbedtls"in Library Manager) - Add
#includeline above#include
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
| #ifndef __COUNTS_PER_MINUTE_H__ | |
| #define __COUNTS_PER_MINUTE_H__ | |
| class CountsPerMinute | |
| { | |
| int m_currentCpm; | |
| int m_maximumCpm; | |
| int m_intervalsPerMinute; | |
| int* m_intervalCounts; | |
| int m_currentInterval; |
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
| namespace Vurdalakov | |
| { | |
| using System; | |
| using System.Diagnostics; | |
| using System.Runtime.InteropServices; | |
| using System.Text; | |
| public static class DateTimeApi | |
| { | |
| public static String GetCurrentTimeString(Boolean shortTime) |
NewerOlder