Files
Scanning the repository...
Last update 5 years 10 months
by Afonso Muralha
| FilesCODEFirmware | |
|---|---|
| .. | |
| .vscode | |
| data | |
| include | |
| lib | |
| src | |
| test | |
| .clang_complete | |
| .gcc-flags.json | |
| .gitignore | |
| .travis.yml | |
| Firmware.ino | |
| README.md | |
| addrmapherlper.py | |
| platformio.ini |
addrmapherlper.pydef getaddr(x, y): address = 0 printstr = '(' if(x > 38 or y > 8): return 0 if(x <= 29 and y <= 5): # page 0 address = y*0x1E #base address of Y address += x printstr += str(hex(address)) + ', ' + '0), ' else: if(x<=29 and y>=6): #page 1 address = (y-6)*0x1E address += x printstr += str(hex(address)) + ', ' + '1), ' else: # page 1 address = y*9 address += 0x5A address += (x-30) printstr += str(hex(address)) + ', ' + '1), ' print(printstr, end = ' ') return address print("byte addrmap[351][2] = {", end = '') for i in range(9): for j in range(39): #print(hex(getaddr(j, i)), end = '') getaddr(j, i) print('\n', end = '') print("};", end = '')