Quantcast
Channel: Support - Pimoroni Buccaneers
Viewing all articles
Browse latest Browse all 6853

Keybow Lighting Problems

$
0
0

@MarkMcD wrote:

I have made two attempts at making an SD card. When I started either one up the pattern only goes on keys 7410852 . All keys can output to my computer. I modified mylayout.lua to berequire “keybow”

– Standard number pad mapping –

– Key mappings –

function handle_key_00(pressed)
keybow.set_key(“0”, pressed)
keybow.set_pixel(0, 0, 255, 0)
end

function handle_key_01(pressed)
keybow.set_key(".", pressed)
keybow.set_pixel(1, 0, 255, 0)
end

function handle_key_02(pressed)
keybow.set_key(keybow.ENTER, pressed)
keybow.set_pixel(2, 0, 255, 0)
end

function handle_key_03(pressed)
keybow.set_key(“1”, pressed)
keybow.set_pixel(3, 0, 255, 0)
end

function handle_key_04(pressed)
keybow.set_key(“2”, pressed)
keybow.set_pixel(4, 0, 255, 0)
end

function handle_key_05(pressed)
keybow.set_key(“3”, pressed)
keybow.set_pixel(5, 0, 255, 0)
end

function handle_key_06(pressed)
keybow.set_key(“4”, pressed)
keybow.set_pixel(6, 0, 255, 0)
end

function handle_key_07(pressed)
keybow.set_key(“5”, pressed)
keybow.set_pixel(7, 0, 255, 0)
end

function handle_key_08(pressed)
keybow.set_key(“6”, pressed)
keybow.set_pixel(8, 0, 255, 0)
end

function handle_key_09(pressed)
keybow.set_key(“7”, pressed)
keybow.set_pixel(9, 0, 255, 0)
end

function handle_key_10(pressed)
keybow.set_key(“8”, pressed)
keybow.set_pixel(10, 0, 255, 0)
end

function handle_key_11(pressed)
keybow.set_key(“9”, pressed)
keybow.set_pixel(11, 0, 255, 0)
end

and I modified keys.lua like the tutorial
and the default.png just keeps playing only on the 7 keys

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 6853

Trending Articles