Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rotary encoder issue. #9

Open
shwifty8790 opened this issue Sep 19, 2017 · 10 comments
Open

Rotary encoder issue. #9

shwifty8790 opened this issue Sep 19, 2017 · 10 comments

Comments

@shwifty8790
Copy link

I'm super inexperienced with coding so I'm curious about changing the button presses. I want a long press to power off/ on and the audio for the portal open to be a single click and portal close to be a double click. Any idea how I would go about changing that up? Thanks in advance.

@shwifty8790
Copy link
Author

Additionally I'm wondering if I can plug in the whole code (copy/paste) with the descriptions included or will that cause errors?

@pomeroyb
Copy link
Owner

Hey there,

You'll want to use the SFX branch. Unfortunately I gave up on SFX personally, but the functionality should all be there. The button presses are between line 144 and line 193 on that branch, and you can add the sound effects to the respective button pattern there.

If you use the main branch, you should be able to just copy paste the relevant code in -- there's not huge differences between the code bases.

Good luck!

@shwifty8790
Copy link
Author

shwifty8790 commented Sep 20, 2017 via email

@shwifty8790
Copy link
Author

Forgot to ask what speaker you used and if there might be a better one to use. I'd like my gun to have the sound feature but it's not going to make or break the project.

@shwifty8790
Copy link
Author

Lastly. Will I need a wav file backpack for the trinket pro or is it capable of storing the 2 sounds?

@pomeroyb
Copy link
Owner

The trinket doesn't have any sound capabilities built in, so you will need an Adafruit FX board.

I used these products (Also listed in the top of the .ino file)

The reason I dropped the FX from the project is because the speaker I used wasn't super loud, and the FX board drained the battery much faster than the trinket in sleep mode. At the very least, I'd do some research on ways to make the speaker louder.

The main branch and the sfx branch should be pretty similar in the controls section... but it's been a while and I don't remember all the differences. Your best bet is to start with the main branch, and copy paste features from the SFX branch over 1 by 1 to make sure there aren't any problems.

Good luck!

@shwifty8790
Copy link
Author

shwifty8790 commented Sep 20, 2017 via email

@pomeroyb
Copy link
Owner

Without the sfx board, my gun can go multiple days without a charge while in sleep mode (I haven't tested with the LEDs on constantly). When the trinket is put to sleep, it consumes an extremely small amount of power

With the sfx board, the gun only had battery for ~two hours while in sleep mode. I could not find a way to make the sfx board use less power. YMMV, but the sfx board was not worth it for me (Especially with how quiet my speaker was)

@shwifty8790
Copy link
Author

shwifty8790 commented Sep 20, 2017 via email

@shwifty8790
Copy link
Author

shwifty8790 commented Sep 20, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants