Outils pour utilisateurs

Outils du site


lovetape

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
Prochaine révisionLes deux révisions suivantes
lovetape [2018/11/28 06:13] – [Téléversement via Avrdude et Arduino as ISP] sergelovetape [2019/12/19 19:25] – ajout tag joseph
Ligne 155: Ligne 155:
  
 Un petit test (il suffit de branché un haut parleur de 8 Ohms sur la pin 0) Un petit test (il suffit de branché un haut parleur de 8 Ohms sur la pin 0)
- +<code> 
-''%%// 8Step MixTape Example Code%%''\\ +// 8Step MixTape Example Code 
-''%%// Basic Onliner%%''\\ +// Basic Onliner 
-''%%// Crazy shit 8-bit symphony generator                   %%''\\ +// Crazy shit 8-bit symphony generator                    
-''%%/*%%''\\ +/* 
-''%% inspired by:%%''\\ + inspired by
-''%%  %%''[[http://countercomplex.blogspot.com/2011/10/algorithmic-symphonies-from-one-line-of.html|''%%http://countercomplex.blogspot.com/2011/10/algorithmic-symphonies-from-one-line-of.html%%'']]\\ +  [[http://countercomplex.blogspot.com/2011/10/algorithmic-symphonies-from-one-line-of.html|http://countercomplex.blogspot.com/2011/10/algorithmic-symphonies-from-one-line-of.html]] 
-''%%  %%''[[http://countercomplex.blogspot.com.es/2011/10/some-deep-analysis-of-one-line-music.html|''%%http://countercomplex.blogspot.com.es/2011/10/some-deep-analysis-of-one-line-music.html%%'']]\\ +  [[http://countercomplex.blogspot.com.es/2011/10/some-deep-analysis-of-one-line-music.html|http://countercomplex.blogspot.com.es/2011/10/some-deep-analysis-of-one-line-music.html]]\\ 
-''%% *%%''\\ + * 
-''%%  try it online:%%''\\ +  try it online
-''%%  %%''[[http://wurstcaptures.untergrund.net/music/|''%%http://wurstcaptures.untergrund.net/music/%%'']]\\ +  [[http://wurstcaptures.untergrund.net/music/|http://wurstcaptures.untergrund.net/music/]]\\ 
-''%% *%%''\\ + * 
-''%% */%%''\\ + */ 
-''%% %%''\\ +  
-''%%// ATMEL ATTINY85 / ARDUINO%%''\\ +// ATMEL ATTINY85 / ARDUINO 
-''%%//%%''\\ +// 
-''%%//                      +-\/-+%%''\\ +//                      +-\/-+ 
-''%%//  Reset A0 (D 5PB5 1   |8  Vcc%%''\\ +//  Reset A0 (D 5PB5 1   |8  Vcc 
-''%%//        A3 (D 3PB3 2   |7  PB2 (D 2) A1%%''\\ +//        A3 (D 3PB3 2   |7  PB2 (D 2) A1 
-''%%//   A2 pwm4 (D 4PB4 3   |6  PB1 (D 1) pwm1%%''\\ +//   A2 pwm4 (D 4PB4 3   |6  PB1 (D 1) pwm1 
-''%%//                 GND 4   |5  PB0 (D 0) pwm0%%''\\ +//                 GND 4   |5  PB0 (D 0) pwm0 
-''%%//                      +----+   %%''\\+//                      +----+   
 \\ \\
-''%%int speakerPin = PB0;%%''\\ +int speakerPin = PB0; 
-''%%int snd = 0; %%''\\ +int snd = 0;  
-''%%long t = 0; %%''\\+long t = 0; 
 \\ \\
-''%%void setup () {%%''\\ +void setup () { 
-''%%  pinMode (speakerPin, OUTPUT);%%''\\ +  pinMode (speakerPin, OUTPUT); 
-''%%}%%''\\ +
-''%% %%''\\ +  
-''%%void loop () { %%''\\+void loop () { 
 \\ \\
-''%%    snd  t * ((t>>7|t>>6)*100+4)*(t&7>>13|t>>6);%%''\\ +    snd  * ((t>>7|t>>6)*100+4)*(t&7>>13|t>>6); 
-''%%    digitalWrite (speakerPin, snd);%%''\\ +    digitalWrite (speakerPin, snd); 
-''%%    %%''\\ +     
-''%%    t++;%%''\\ +    t++; 
-''%%    %%''\\ +     
-''%%}%%''+} 
 +</code>
  
 ==== Plein d'exemples de jolies chansons ==== ==== Plein d'exemples de jolies chansons ====
Ligne 260: Ligne 261:
 https://www.reddit.com/r/bytebeat/comments/20km9l/cool_equations/ https://www.reddit.com/r/bytebeat/comments/20km9l/cool_equations/
  
-{{tag>faire_du_bruit}}+{{tag>faire_du_bruit attiny pcb ibniz}}
lovetape.txt · Dernière modification : 2020/10/29 13:58 de serge