Skip to content

Instantly share code, notes, and snippets.

View sunify's full-sized avatar

Alex Lunyov sunify

View GitHub Profile
This file has been truncated, but you can view the full file.
{
"steps": [
{
"memReadLow": -1,
"memReadHigh": -1,
"memWriteLow": -1,
"memWriteHigh": -1,
"callDataReadLow": -1,
"callDataReadHigh": -1,
"opcodeName": "PUSH",
function calcTimeParts(time) {
const digits = (time || '').replace(/[^0-9]/g, '').slice(0, 4).split('');
if (digits.length === 4) {
return [digits.slice(0, 2).join(''), digits.slice(2).join('')];
}
if (digits.length === 3) {
if (digits[0] === '0') { // Скорее всего вводят что-то вроде 09:00
return [digits.slice(0, 2).join(''), digits.slice(2).join('')];
}
#include <Keypad.h>
#include <Keyboard.h>
const byte ROWS = 3;
const byte COLS = 3;
char hexaKeys[ROWS][COLS] = {
{'7','8','9'},
{'4','5','6'},
{'1','2','3'}