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 groovy.xml.XmlParser | |
import java.text.DecimalFormat | |
tasks.register('koverStats') { | |
dependsOn ':koverXmlReport' | |
def percentageFormat = new DecimalFormat("#.##%") | |
ext.srcFile = new File(buildDir, 'reports/kover/xml/report.xml') | |
inputs.file srcFile | |
doLast { | |
println "Coverage Stats." |
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
#define CHANNEL_0 14 | |
#define CHANNEL_1 15 | |
#define CHANNEL_2 16 | |
uint16_t ch0; | |
uint16_t ch1; | |
uint16_t ch2; | |
void setup() { | |
Serial.begin(19200); |
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
function request( delay, value, fail ) | |
{ | |
return new Promise(function( fullfill, reject ) { | |
setTimeout( (fail ? reject : fullfill).bind( this, value), delay ); | |
}); | |
} | |
var render = console.log.bind( console, "render" ) | |
, error = console.log.bind( console, "error" ) | |
; |