#!/usr/bin/env python3
from eye import *

def main():
    id = []*256

    LCDMenu("", "", "", "END")
    LCDPrintf("init\n")
    RADIOInit()

    myid = RADIOGetID()
    LCDPrintf("my id %d\n", myid)

    LCDPrintf("scanning\n")
    l = RADIOStatus(id) 

    LCDPrintf("Other robots: %d\n", l)
    for i in range(l):
        LCDPrintf("%d  ", id[i])
        LCDPrintf("\n")
        KEYWait(KEY4)

if __name__ == "__main__":
    main()
