unable to write to the board

hi im new to arduino programming i wanted to make a midi controller using Arduino Leonardo ATMega 32U4 board when i try to upload im getting the below error

BN: Arduino Leonardo
VID: 2341
PID: 8036
SN: (null)

thanks in advance
nipul

=========================================================

C:\Users\Nipul\Downloads\Flipper-Dj-master\Flipper-Dj-master\Code\Fliper_DJ_MidiUsb\Fliper_DJ_MidiUsb.ino: In function 'void noteOn(byte, byte, byte)':

C:\Users\Nipul\Downloads\Flipper-Dj-master\Flipper-Dj-master\Code\Fliper_DJ_MidiUsb\Fliper_DJ_MidiUsb.ino:219:42: warning: narrowing conversion of '(int)(channel | 144u)' from 'int' to 'uint8_t {aka unsigned char}' inside { } [-Wnarrowing]

midiEventPacket_t noteOn = {0x09, 0x90 | channel, pitch, velocity};

^

C:\Users\Nipul\Downloads\Flipper-Dj-master\Flipper-Dj-master\Code\Fliper_DJ_MidiUsb\Fliper_DJ_MidiUsb.ino: In function 'void noteOff(byte, byte, byte)':

C:\Users\Nipul\Downloads\Flipper-Dj-master\Flipper-Dj-master\Code\Fliper_DJ_MidiUsb\Fliper_DJ_MidiUsb.ino:224:43: warning: narrowing conversion of '(int)(channel | 128u)' from 'int' to 'uint8_t {aka unsigned char}' inside { } [-Wnarrowing]

midiEventPacket_t noteOff = {0x08, 0x80 | channel, pitch, velocity};

^

C:\Users\Nipul\Downloads\Flipper-Dj-master\Flipper-Dj-master\Code\Fliper_DJ_MidiUsb\Fliper_DJ_MidiUsb.ino: In function 'void controlChange(byte, byte, byte)':

C:\Users\Nipul\Downloads\Flipper-Dj-master\Flipper-Dj-master\Code\Fliper_DJ_MidiUsb\Fliper_DJ_MidiUsb.ino:229:41: warning: narrowing conversion of '(int)(channel | 176u)' from 'int' to 'uint8_t {aka unsigned char}' inside { } [-Wnarrowing]

midiEventPacket_t event = {0x0B, 0xB0 | channel, control, value};

^

Sketch uses 7420 bytes (25%) of program storage space. Maximum is 28672 bytes.
Global variables use 533 bytes (20%) of dynamic memory, leaving 2027 bytes for local variables. Maximum is 2560 bytes.

===========================================================

here are the source details

"GitHub - silveirago/Flipper-Dj"

Those are warning messages not error messages

Hi,
Welcome to the forum.

Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html . Then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.

Thanks.. Tom... :slight_smile:

Thank You UKHeliBob & TomGeorge i will read the fisrt post and do it correctly