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 <avr/sleep.h> | |
// Utility macros | |
#define adc_disable() (ADCSRA &= ~(1<<ADEN)) // disable ADC (before power-off) | |
#define adc_enable() (ADCSRA |= (1<<ADEN)) // re-enable ADC | |
const int ledPin1 = 1; | |
const int ledPin2 = 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
#include <avr/sleep.h> | |
// Utility macros | |
#define adc_disable() (ADCSRA &= ~(1<<ADEN)) // disable ADC (before power-off) | |
#define adc_enable() (ADCSRA |= (1<<ADEN)) // re-enable ADC | |
const int ledPin1 = 1; | |
const int ledPin2 = 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
### Keybase proof | |
I hereby claim: | |
* I am remcoder on github. | |
* I am remcoder (https://keybase.io/remcoder) on keybase. | |
* I have a public key ASBDlmmbx10FUv-0UQt1gbgecJ-rPFYJbTQdNGCm_KpH5wo | |
To claim this, I am signing this object: |
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
let prevGCmd = null; | |
const previewCode = gcode | |
.split('\n') | |
.map((i) => { | |
const line = i.trim(); | |
let result = line; | |
if (line.startsWith('G20')) { // keep as is | |
return 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
let prevGCmd = null; | |
const previewCode = gcode | |
.split('\n') | |
.map((i) => { | |
const line = i.trim(); | |
let result = line; | |
if (line.charAt(0) == 'G') { | |
const gCmd = new RegExp(/G\d+/g); |
OlderNewer