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
use core::sync::atomic::{AtomicU32, Ordering}; | |
use defmt::trace; | |
use embassy_sync::{ | |
blocking_mutex::{CriticalSectionMutex, raw::CriticalSectionRawMutex}, | |
signal::Signal, | |
}; | |
use embassy_time::{Duration, Instant}; | |
use heapless::Vec; | |
// type PendingTasksMap = FnvIndexMap<u32, TaskInstant, 16>; |
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
use embassy_futures::select::{Either, select, select_array}; | |
use embassy_time::Timer; | |
use esp_hal::{ | |
gpio::{Input, InputConfig, InputPin, Pull}, | |
peripheral::Peripheral, | |
}; | |
const STATE_A: u8 = 0b1000; | |
const STATE_AB: u8 = 0b1100; | |
const STATE_B: u8 = 0b0100; |
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
{"lastUpload":"2021-10-08T09:58:29.031Z","extensionVersion":"v3.4.3"} |
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
(<any>Symbol).asyncIterator = Symbol.asyncIterator || Symbol.for("Symbol.asyncIterator"); | |
const sleep = async (ms: number) => new Promise((resolve, reject) => setTimeout(() => resolve(), ms)); | |
class TestClass { | |
private awaitable = Promise.resolve([1, 2, 3, 4, 5]); | |
async *count(count: number): AsyncIterableIterator<number> { | |
for (let i = 0; i < count; i++) { | |
yield* (async function* () { | |
await sleep(100); |
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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>MediathekViewWeb API</title> | |
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> | |
</head> |