Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
/* messing with tone, and conflicting pins. */ int buzz = 8; int p3 = 3; int p11 =11; int analogPin = A0; int val =0; // the setup routine runs once when you press reset: void setup() { // initialize the digital pin as an output. pinMode(buzz, OUTPUT); pinMode(p3,OUTPUT); pinMode(p11, OUTPUT); } // the loop routine runs over and over again forever: void loop() { tone(buzz, 0, 500); // wait for a second val = analogRead(analogPin); analogWrite(buzz, val ); }
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)