https://os.mbed.com/users/jtloop/notebook/extreme-kayaking/


Selection Process

uLCD.BLIT(30, 30, KAYAK_WIDTH, KAYAK_HEIGHT, PLAYER_KAYAK1);
uLCD.BLIT(30, 60, KAYAK_WIDTH, KAYAK_HEIGHT, PLAYER_KAYAK2);
uLCD.BLIT(60, 30, KAYAK_WIDTH, KAYAK_HEIGHT, PLAYER_KAYAK3);
uLCD.BLIT(60, 60, KAYAK_WIDTH, KAYAK_HEIGHT, PLAYER_KAYAK4);
bool selection=false;

while(!selection){
    if (blue.readable()){
            if (blue.getc() == '!'){
                if(blue.getc() == 'B') {
                    dir = blue.getc();
                    on = blue.getc();
                    if (dir == '1' && on == '1') {
                        k.setimage(PLAYER_KAYAK1);
                        selection = true;
                    }
                    if (dir == '2' && on == '1') {
                        k.setimage(PLAYER_KAYAK2);
                        selection = true;
                    }
                    if (dir == '3' && on == '1') {
                        k.setimage(PLAYER_KAYAK3)
                        selection = true;
                    }
                    if (dir == '4' && on == '1') {
                        k.setimage(PLAYER_KAYAK4)
                        selection = true;
                    }
                }
            }
        }
    }