Create an app that displays a new web page when you press the button!
Contents
Make things
Add a button to obniz so that when the button is pressed, the web page with the URL specified by the program will be displayed.
Materials
- obniz Board
- Grove Blue LED Buttons : [Switch Science]
- obniz Grove connector : [BOOTH]
or - Grove 4 Pin Connector – Jumper Pin Conversion Cable : [Sengoku Densho]
How to make
Hardware connection
Connect the obniz to the button as shown in the following table.
obniz | Grove |
---|---|
1 | SIG |
GND | GND |
+ | VCC |
[Reference] obniz parts library (Button)
Program
Execute
When the program is executed, the URL you set will be displayed on the execution screen.
Pressing the button (Grove blue LED button) may result in a pop-up block.
If you give permission by referring to the image, a new tab will be added and the URL in the program will be displayed.