Installing a string of addressable leds is ok, but there is quite a lot of work involved afterwards in addressing these. First we want to know what each led does on the playfield. some are GI lamps, most are “feature” lights, with a specific meaning. eg “shoot again”. 2X bonus, special , etc. so i have to figure out which led number in the string, is in which position. that then allows me to program up the game and switch the relevant feature leds on at the appropriate time.
In addition to this, i also want some led animations - an animation is where a group of leds or, even the whole playfield of leds, are controlled in sequence. All the example scripts you find generally just process the leds in led # order, but for a playfield this doesn’t work because we’ve wired the playfield up in any old random order, so the led number is meaningless. What has more meaning is the position of the led on the playfield, or another meaningful way is to group leds that are similar eg if there is a line of yellow arrow inserts you may want to light those in sequence. This means we need to hold positional coordinates for each led and also group leds together. It’s taken me a few hours to map out the coordinates of the leds on the playfield. i marked the playfield into 2.5cm squares and then figured out the X and Y co ordinates of each led. So now i can fairly easily program some light animations that run from side to side, top to bottom, diagonally, etc.
I’ve also coded in some test for the coil triggers and they seem to be firing off ok.
I need to test the coils themselves as i’m sure a couple are broken (i tested them a few months ago and remember some were not working)
I am now at the stage where I feel I can start on the actual game code. To start with I am going to aim to get a game going that has similar rules to the original game of the playfield. 8 ball champ. this makes sense to me as a first attempt because i don’t have to really do much thinking about the game rules, they are already designed and documented.