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
#!/usr/bin/env -Sdeno run --allow-net | |
import { parse } from "https://deno.land/std/flags/mod.ts"; | |
import { red, bold, green, blue } from "https://deno.land/std/fmt/colors.ts"; | |
import { sprintf } from "https://deno.land/std/fmt/sprintf.ts"; | |
export interface ComponentPrice { | |
endNumber: number; | |
productPrice: number; | |
startNumber: number; |
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
EEPROM_write: | |
; Wait for completion of previous write | |
sbic EECR,EEPE | |
rjmp EEPROM_write | |
; Set Programming mode | |
ldi r16, (0<<EEPM1)|(0<<EEPM0) | |
out EECR, r16 | |
; Set up address (r17) in address register | |
out EEARL, r17 | |
; Write data (r16) to data register |