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 <Servo.h> | |
| #include <SPI.h> | |
| #include <Wire.h> | |
| #include <SparkFunLSM9DS1.h> | |
| Servo servo; | |
| LSM9DS1 imu; |
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
| template<class T> | |
| class If : public T { | |
| public: | |
| static Rc<If> create( | |
| Rc<BoolNode> condition, | |
| Rc<T> on_true, | |
| Rc<T> on_false | |
| ) { | |
| return std::shared_ptr<If>(new If(condition, on_true, on_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
| class Node; | |
| class FractionalNode { | |
| virtual double min() = 0; | |
| virtual double max() = 0; | |
| }; | |
| class BooleanNode; | |
| template<class Result> |
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 Test where | |
| import Clash.Prelude | |
| import Clash.Explicit.Testbench | |
| delay2 :: (KnownNat n, HiddenClockReset domain gated synchronous) => DSignal domain n Int -> DSignal domain (n + 2) Int | |
| delay2 = delayedI | |
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
| /* ==UserStyle== | |
| @name Empty @name replaces the default template - 2/11/2019, 12:57:34 PM | |
| @namespace github.com/openstyles/stylus | |
| @version 1.0.0 | |
| @description A new userstyle | |
| @author Me | |
| ==/UserStyle== */ | |
| @-moz-document url-prefix("https://tornby.kina-thai.se/") { | |
| /* Insert code here... */ |
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
| use rand::{ | |
| Rng, | |
| thread_rng, | |
| distributions::{ | |
| Distribution, | |
| Uniform | |
| } | |
| }; | |
| use std::time::Instant; |
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
| ~/Documents/fpga/apio_template ♦ ➔ stack build clash-ghc-0.99.3 (master|●1✚3…)wraith | |
| Error: While constructing the build plan, the following exceptions were encountered: | |
| In the dependencies for clash-ghc-0.99.3: | |
| clash-lib-0.7.1 from stack configuration does not match >=0.99.3 && <1.0 (latest matching version | |
| is 0.99.3) | |
| clash-prelude-0.11.2 from stack configuration does not match >=0.99.3 && <1.0 (latest matching | |
| version is 0.99.3) | |
| ghc-8.0.2 from stack configuration does not match >=8.2.0 && <8.8 (latest matching version |
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
| Codec: Realtek ALC295 | |
| Address: 0 | |
| AFG Function Id: 0x1 (unsol 1) | |
| Vendor Id: 0x10ec0295 | |
| Subsystem Id: 0x103c827e | |
| Revision Id: 0x100002 | |
| No Modem Function Group found | |
| Default PCM: | |
| rates [0x560]: 44100 48000 96000 192000 | |
| bits [0xe]: 16 20 24 |
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
| Codec: Realtek ALC295 | |
| Address: 0 | |
| AFG Function Id: 0x1 (unsol 1) | |
| Vendor Id: 0x10ec0295 | |
| Subsystem Id: 0x103c827e | |
| Revision Id: 0x100002 | |
| No Modem Function Group found | |
| Default PCM: | |
| rates [0x560]: 44100 48000 96000 192000 | |
| bits [0xe]: 16 20 24 |
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
| struct Esp8266<Tx, Rx, Timer, Timeout> | |
| where Tx: hal::serial::Write<u8>, | |
| Rx: hal::serial::Read<u8>, | |
| Timer: hal::timer::CountDown, | |
| Timeout: Fn() -> Timer::Time | |
| { | |
| tx: Tx, | |
| rx: Rx, | |
| timer: Timer, | |
| timeout: Timeout |