Simple Fidget Spinner


#3

The origin of this code come from the example ROTATING CLOCK, that I modified to make an actual clock, then I branched off and made a fidget spinner in less than an hour.
So that’s why :slight_smile:

I wasn’t trying to make something polished.
haha


#4

COOL ! especially because somebody actually learned from one of our demos :smiley:


#5

That’s why I share my code, so someone can learn from it.


#6

Well this is funny i just realized my program wasn’t properly on GitHub, its now.

sorry for that.


#10

huh?
whats happening?


(Pharap) #11

I assure you that whatever problem you are having, it unlikely that it is being caused by this game, this game isn’t doing anything likely to cause that issue and it did not cause that issue when I tried it.
It is likely to be a problem with another game you have previously used (e.g. Arduventure) or a problem with your setup.
It is also possible (but much less likely) that it might be a problem with your arduboy


(Katie Hiller Mc Bride) #12

I am so sorry! My son posted that and I didn’t know about it. Please accept both mine and my son’s apologies. We have discussed that his comment was rude and disrespectful and he feels quite bad. Again, I am so sorry!


#13

No problem, hopefully everything is fine.


(Katie Hiller Mc Bride) #14

All is well, we just had to have a discussion about being kind and respectful. He is still working on that…honestly, sometimes I need to work on it too.


#15

New tagline,
The Arduino community - Where we learn programing skills sprinkled with social skills. :wink:
hehe.


(Katie Hiller Mc Bride) #16

Right!? Again, I am so sorry!!! He is fairly frustrated as we had to have a unit replaced and it just arrived yesterday and he installed the fidget spinner sketch and now we can’t get anything else to install, but he knows he is not allowed to be rude and disrespectful no matter what. Time for troubleshooting the Arduboy and correcting the bad behavior.


#17

Don’t worry. It’s all good. I’ve was young once.
My wonder is why is the unit not accepting a new program. I even again tested to see if I could install over and it was fine.
with 2 different unit

Does the Arduboy even turn on?
then
Does your computer make an audible sound detecting the connection when you plug in the Arduboy (power on).


(Katie Hiller Mc Bride) #18

I’m chatting with Kevin right now to try and get it figured out. Thanks for being understanding. :slight_smile:


#19

I’ve bricked my Arduboy once. But managed to fix it.
I’d like to know what happened to yours
thanks


(Scott) #20

Since you’ve been able to load new sketches, it doesn’t appear that this sketch suffers from from the bootloader “magic number” issue. However, it would still be a good idea to change the arduboy.boot() call in setup() to arduboy.begin(), or at least add a call to arduboy.flashlight().

This would allow recovery using flashlight mode if future changes to the program inadvertently cause the magic number issue.


(Katie Hiller Mc Bride) #21

is that something to be done in the game code or somewherre else?


#22

Alright I changed boot to begin and added flashlight.
Also added blinking LED when you rotate the spinner, cuz why not :stuck_out_tongue:
Git Hub here


(Scott) #23

You shouldn’t call flashlight() if you use begin(). begin() calls flashlight() itself.

It has to be done in the code. If the sketch suffers from the “magic number” problem and doesn’t include some way of stopping continuous RAM overwrite, such as by using begin(), flashlight() or safeMode(), then you have to recover using the reset button, which can be very difficult.


(Scott) #24

setRGBled() takes values from 0 (off) to 255 (full brightness) for each LED. By using a value of 1, you’re setting the LED to it’s lowest brightness, which will be quite dim.

If you were aware of this and it’s what you intended, then that’s fine.


(curly) #25

fidget spinners, proof people will spend money on anything