After giving it some thought, I wonder why the kiss solution
was not proposed. If I can do radio.on(), there must be a radio.off().
No need for extra variables, no nested if statements.
Two Images to reflect the status. Done.
Dpaul
Search found 10 matches
- Sat Feb 12, 2022 6:42 am
- Forum: micro:bit boards
- Topic: radio receive
- Replies: 4
- Views: 22659
- Fri Feb 11, 2022 6:20 pm
- Forum: micro:bit boards
- Topic: radio receive
- Replies: 4
- Views: 22659
Re: radio receive
Thanks Lujo, good idea ;
Of course, i need to switch it on and off again: button_a twice
(I'm in luck, buttons are free from other functions, so it might work.)
To show the status, we could show an Image.
Dpaul
Of course, i need to switch it on and off again: button_a twice
(I'm in luck, buttons are free from other functions, so it might work.)
To show the status, we could show an Image.
Dpaul
- Fri Feb 11, 2022 3:37 pm
- Forum: micro:bit boards
- Topic: radio receive
- Replies: 4
- Views: 22659
radio receive
Hi, I have a setup with 1 micro:bit that (radio) receives data, and 10 other that send data (yes/no votes). I need to receive the sender's data only when the reception function is "open". Outside this window any data sent should be disregarded. What would be the best approach to disregard any sent m...
- Fri Dec 06, 2019 9:35 am
- Forum: micro:bit boards
- Topic: piano trouble
- Replies: 7
- Views: 5388
Re: piano trouble
Hi, I have taken into acount all the remarks, and changed 2 things. As far as i can tell, it works ! :o 1) i got inspired by the cols and rows to turn the program around, writing digital zero instead of 1 2) i changed the hardware config, now the leg with the 10k resistor goes to GND, the other to V...
- Fri Dec 06, 2019 8:57 am
- Forum: micro:bit boards
- Topic: piano trouble
- Replies: 7
- Views: 5388
Re: piano trouble
Thanks lujo,
Will try this immediately.
I see a big difference right away, might be the solution ...
Paul
Will try this immediately.
I see a big difference right away, might be the solution ...
Paul
- Fri Dec 06, 2019 7:41 am
- Forum: micro:bit boards
- Topic: piano trouble
- Replies: 7
- Views: 5388
Re: piano trouble
Thanks Jimmo, a) Agreed, Music.stop() should not be necessary. lengths of notes are driven via parameters. b) Write_digital(1) not necessary: i thought not, that is the reason i asked. (i'll take it away) c) pullup/pulldown resistor: The push buttons are connected to: One leg to : pinX (1,2,8,13,14,...
- Thu Dec 05, 2019 9:42 am
- Forum: micro:bit boards
- Topic: piano trouble
- Replies: 7
- Views: 5388
Re: piano trouble
Thanks, I now tested multiple music.stop() configurations, and it may certainly have somethingto do with it. But i also have a 7 push-button version, where music.stop() does not work so well. It almost seems that when you press one of the buttons, some current is randomly triggering one or 2 others,...
- Thu Dec 05, 2019 8:20 am
- Forum: micro:bit boards
- Topic: piano trouble
- Replies: 7
- Views: 5388
piano trouble
Hi, I am testing a one - note piano with a pushbutton on the microbit. The digital reading is "1" in normal state, and "0" when the button is pressed. (signal goes to GND) The the note is produced. So far so good. My question: The note keeps on sounding even after i release the button . I expected t...
- Tue Mar 19, 2019 9:59 am
- Forum: micro:bit boards
- Topic: radio function
- Replies: 1
- Views: 2728
radio function
Hi, I have a setup where a number of microbits send info to a central microbit using the radio() function. I keep the receiving (central) microbit attached to the development computer, using the Mu editor, where i can check the "files" on the Microbit. Question: when i check the files via MU on the ...
- Tue Mar 05, 2019 4:00 pm
- Forum: micro:bit boards
- Topic: radio docs
- Replies: 0
- Views: 2826
radio docs
Hi, I am almost succesful in sending info from one microbit to another using microPython. But i feel the need for a thorough presentation of all the parameters, possibilities, etc.. of the radio function. Details are never discussed , not even in the BBC micro:bit MicroPython documentation of Decemb...