Click here to Skip to main content
15,891,657 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am trying to program a "one armed bandit" slot machine using the bare metal approach in Arduino. I am struggling with the "load credit part" The system’s orientation must change from flat to left and back to flat for the credit to increase by one and I don't want the credit to be able to go above 15. Then when the orientation goes from flat to right back to flat I want to be able to "take the winnings and set the credit back to 0.The reason I'm finding it so difficult is because I have never used the bare metal approach before and I cannot use PinMode or digitalWrite. The main part I am struggling with is getting the seven segment display to increment its displayed value by 1 each time a credit is "added" using the accelerometer. I am using a seven segment display is anyone able to help?

Any help is appreciated

What I have tried:

float AccX, AccY, AccZ;
float GyroX, GyroY, GyroZ;
Posted
Updated 1-Jan-21 0:08am
Comments
Richard MacCutchan 1-Jan-21 3:47am    
If you want help then you need to show your code and explain where the problem is.

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900