This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/************************************************************* | |
This is a simple demo of sending and receiving some data. | |
Be sure to check out other examples! | |
*************************************************************/ | |
// Template ID, Device Name and Auth Token are provided by the Blynk.Cloud | |
// See the Device Info tab, or Template settings | |
#define BLYNK_TEMPLATE_ID "TMPLzKn_S2WG" | |
#define BLYNK_DEVICE_NAME "Quickstart Device" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
substitutions: | |
devicename: play_kitchen | |
friendly_name: Play Kitchen | |
ip: '10.5.5.222' | |
wifi_reboot_timeout: 0s | |
########### PINS ######### | |
# 3.3V 5V | |
# GPIO15 GROUND | |
# dht # GPIO13 GPIO2 LED / buzzer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Protocol=PULSE_DISTANCE Address=0x0 Command=0x0 Raw-Data=0x356 10 bits LSB first | |
Raw result in internal ticks (50 us) - with leading gap | |
rawData[24]: | |
-65535 | |
+ 23,- 11 + 12,- 12 + 14,- 28 + 13,- 29 | |
+ 13,- 12 + 14,- 28 + 14,- 11 + 15,- 27 | |
+ 12,- 13 + 12,- 30 + 12,- 30 + 13 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#the codec is in nec format captured by using esphome on a nodemcu | |
Button_name: | |
codec | |
power: | |
Received NEC: address=0x01FE, command=0x48B7 | |
mode: | |
Received NEC: address=0x01FE, command=0x58A7 | |
mute: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset=UTF-8 /> | |
<link rel="stylesheet" type="text/css" href="styles.css" /> | |
</head> | |
<body> | |
<script src="./three/three.min.js"></script> | |
<script type="module" src="three/OrbitControls.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Write code that will count the number of vowels in the sentence s and assign the result to the variable num_vowels. | |
# For this problem, vowels are only a, e, i, o, and u. Hint: use the in operator with vowels. | |
s = "singing in the rain and playing in the rain are two entirely different situations but both can be fun" | |
vowels = ['a','e','i','o','u'] | |
# Write your code here. | |
num_vowels = sum([1 for i in s if i in vowels]) | |
print(num_vowels) |