afacuarius
New Member
Hi, I'm doing my first picaxe projects, I am slowly climbing some level, my first projects were on and off a LED and went up the complexity of my projects.
I have seen some basic commands, but not how to write them
I finished this that I show, but now I want to change the DIP SW by a single push button, which when squeezed, change the strings.
At this time, for a sequence, I move to 1 output interutor as 4 effects are different, are 4 switches. I want to summarize all this interrumpor only push 1 botom that when pressed, switch to the next routine.
I'm using the picaxe 18m2
I hope to understand and I use google translator
Many Thanks for the help
regards
Hola, estoy realizando mis primeros proyectos con picaxe, estoy subiendo poco a poco a poco de nivel, mis primeros proyectos fueron prender y apagar un led y fui subiendo la complejidad de mis proyectos.
he visto algunos comandos basicos, pero no se como escribirlos
he terminado este que les muestro, pero ahora quiero cambiar el DIP SW por un solo push boton, que al apretarlo, cambie las secuencias.
En este momento, para tener una secuencia, debo mover a 1 el interutor de la salida, como son 4 efectos diferentes, son 4 interruptores. todo esto lo quiero resumir a 1 solo interrumpor push botom que al presionarlo, cambien a la siguiente rutina.
estoy utilizando el picaxe 18m2
Espero me de a entender ya que uso el traductor de google
Muchas Gracias por la ayuda
Saludos
[video=youtube_share;b8ujfZLwO7o]http://youtu.be/b8ujfZLwO7o[/video]
I have seen some basic commands, but not how to write them
I finished this that I show, but now I want to change the DIP SW by a single push button, which when squeezed, change the strings.
At this time, for a sequence, I move to 1 output interutor as 4 effects are different, are 4 switches. I want to summarize all this interrumpor only push 1 botom that when pressed, switch to the next routine.
I'm using the picaxe 18m2
I hope to understand and I use google translator
Many Thanks for the help
regards
Hola, estoy realizando mis primeros proyectos con picaxe, estoy subiendo poco a poco a poco de nivel, mis primeros proyectos fueron prender y apagar un led y fui subiendo la complejidad de mis proyectos.
he visto algunos comandos basicos, pero no se como escribirlos
he terminado este que les muestro, pero ahora quiero cambiar el DIP SW por un solo push boton, que al apretarlo, cambie las secuencias.
En este momento, para tener una secuencia, debo mover a 1 el interutor de la salida, como son 4 efectos diferentes, son 4 interruptores. todo esto lo quiero resumir a 1 solo interrumpor push botom que al presionarlo, cambien a la siguiente rutina.
estoy utilizando el picaxe 18m2
Espero me de a entender ya que uso el traductor de google
Muchas Gracias por la ayuda
Saludos
Code:
b1 = 80
b2 = 175
b3 = 400
b4 = 90
b5 = 400
b6= 25
inicio:
if input0 is on then bala 'si la entrada 0 es "1" salta a subrutina bala sino a inicio
if input1 is on then balb 'si la entrada 1 es "1" salta a subrutina balb sino a inicio
if input2 is on then balc 'si la entrada 2 es "1" salta a subrutina balc sino a inicio
if input6 is on then bald 'si la entrada 6 es "1" salta a subrutina bald sino a inicio
goto inicio 'salto a inicio
bala: `entrada a
high 0,1,2
pause b1
low 0,1,2
low 0,1,2
pause b1
high 0,1,2
high 0,1,2
pause b1
low 0,1,2
low 0,1,2
pause b1
high 0,1,2
high 0,1,2
pause b1
low 0,1,2
high 3,4,5
pause b1
low 3,4,5
low 3,4,5
pause b1
high 3,4,5
high 3,4,5
pause b1
low 3,4,5
low 3,4,5
pause b1
high 3,4,5
high 3,4,5
pause b1
low 3,4,5
high 0,1,2
pause b1
low 0,1,2
low 0,1,2
pause b1
high 0,1,2
high 0,1,2
pause b1
low 0,1,2
low 0,1,2
pause b1
high 0,1,2
high 0,1,2
pause b1
low 0,1,2
high 3,4,5
pause b1
low 3,4,5
low 3,4,5
pause b1
high 3,4,5
high 3,4,5
pause b1
low 3,4,5
low 3,4,5
pause b1
high 3,4,5
high 3,4,5
pause b1
low 3,4,5
high 0,1,2
pause b1
low 0,1,2
low 0,1,2
pause b1
high 0,1,2
high 0,1,2
pause b1
low 0,1,2
low 0,1,2
pause b1
high 0,1,2
high 0,1,2
pause b1
low 0,1,2
high 3,4,5
pause b1
low 3,4,5
low 3,4,5
pause b1
high 3,4,5
high 3,4,5
pause b1
low 3,4,5
low 3,4,5
pause b1
high 3,4,5
high 3,4,5
pause b1
low 3,4,5
high 0,1,2
pause b1
low 0,1,2
low 0,1,2
pause b1
high 0,1,2
high 0,1,2
pause b1
low 0,1,2
low 0,1,2
pause b1
high 0,1,2
high 0,1,2
pause b1
low 0,1,2
high 3,4,5
pause b1
low 3,4,5
low 3,4,5
pause b1
high 3,4,5
high 3,4,5
pause b1
low 3,4,5
low 3,4,5
pause b1
high 3,4,5
high 3,4,5
pause b1
low 3,4,5
balb: `entrada b
high 0
pause b2
low 0
high 5
pause b2
low 5
high 0
pause b2
low 0
high 5
pause b2
low 5
high 0
pause b2
low 0
high 5
pause b2
low 5
high 0
pause b2
low 0
high 5
pause b2
low 5
high 0
pause b2
low 0
high 5
pause b2
low 5
high 0
pause b2
low 0
high 5
pause b2
low 5
high 0
pause b2
low 0
high 4,5
pause b3
low 4,5
high 0,1
pause b3
low 0,1
high 4,5
pause b3
low 4,5
high 0,1
pause b3
low 0,1
high 4,5
pause b3
low 4,5
high 0,1
pause b3
low 0,1
high 4,5
pause b3
low 4,5
high 0,1
pause b3
low 0,1
high 4,5
pause b3
low 4,5
high 0,1
pause b3
low 0,1
high 4,5
pause b3
low 4,5
high 0,1
pause b3
low 0,1
high 4,5
pause b3
low 4,5
high 0,1
pause b3
low 0,1
high 4,5
pause b3
low 4,5
balc: `entrada c
high 0,1,2,3,4,5
pause b1
low 0,1,2,3,4,5
low 0,1,2,3,4,5
pause b1
high 0,1,2,3,4,5
high 0,1,2,3,4,5
pause b1
low 0,1,2,3,4,5
low 0,1,2,3,4,5
pause b1
high 0,1,2,3,4,5
high 0,1,2,3,4,5
pause b1
low 0,1,2,3,4,5
low 0,1,2,3,4,5
pause b1
high 0,1,2,3,4,5
high 0,1,2,3,4,5
pause b1
low 0,1,2,3,4,5
low 0,1,2,3,4,5
pause b1
high 0,1,2,3,4,5
high 0,1,2,3,4,5
pause b1
low 0,1,2,3,4,5
low 0,1,2,3,4,5
pause b1
high 0,1,2,3,4,5
high 0,1,2,3,4,5
pause b1
low 0,1,2,3,4,5
low 0,1,2,3,4,5
pause b1
high 0,1,2,3,4,5
high 0,1,2,3,4,5
pause b1
low 0,1,2,3,4,5
low 0,1,2,3,4,5
pause b1
high 0,1,2,3,4,5
high 0,1,2,3,4,5
pause b1
low 0,1,2,3,4,5
low 0,1,2,3,4,5
pause b1
high 0,1,2,3,4,5
low 0,1,2,3,4,5
bald: `entrada d
low 2,3
pause b6
high 2,3
high 2,3
pause b6
low 2,3
low 2,3
pause b6
high 2,3
high 2,3
pause b6
low 2,3
low 2,3
pause b6
high 2,3
high 2,3
pause b6
low 2,3
low 1,4
pause b6
high 1,4
high 1,4
pause b6
low 1,4
low 1,4
pause b6
high 1,4
high 1,4
pause b6
low 1,4
low 1,4
pause b6
high 1,4
high 1,4
pause b6
low 1,4
low 0,5
pause b6
high 0,5
high 0,5
pause b6
low 0,5
low 0,5
pause b6
high 0,5
high 0,5
pause b6
low 0,5
low 0,5
pause b6
high 0,5
high 0,5
pause b6
low 0,5
low 1,4
pause b6
high 1,4
high 1,4
pause b6
low 1,4
low 1,4
pause b6
high 1,4
high 1,4
pause b6
low 1,4
low 1,4
pause b6
high 1,4
high 1,4
pause b6
low 1,4
low 2,3
pause b6
high 2,3
high 2,3
pause b6
low 2,3
low 2,3
pause b6
high 2,3
high 2,3
pause b6
low 2,3
low 2,3
pause b6
high 2,3
high 2,3
pause b6
low 2,3
low 1,4
pause b6
high 1,4
high 1,4
pause b6
low 1,4
low 1,4
pause b6
high 1,4
high 1,4
pause b6
low 1,4
low 1,4
pause b6
high 1,4
high 1,4
pause b6
low 1,4
low 0,5
pause b6
high 0,5
high 0,5
pause b6
low 0,5
low 0,5
pause b6
high 0,5
high 0,5
pause b6
low 0,5
low 0,5
pause b6
high 0,5
high 0,5
pause b6
low 0,5
low 1,4
pause b6
high 1,4
high 1,4
pause b6
low 1,4
low 1,4
pause b6
high 1,4
high 1,4
pause b6
low 1,4
low 1,4
pause b6
high 1,4
high 1,4
pause b6
low 1,4
low 2,3
pause b6
high 2,3
high 2,3
pause b6
low 2,3
low 2,3
pause b6
high 2,3
high 2,3
pause b6
low 2,3
low 2,3
pause b6
high 2,3
high 2,3
pause b6
low 2,3
low 1,4
pause b6
high 1,4
high 1,4
pause b6
low 1,4
low 1,4
pause b6
high 1,4
high 1,4
pause b6
low 1,4
low 1,4
pause b6
high 1,4
high 1,4
pause b6
low 1,4
low 0,5
pause b6
high 0,5
high 0,5
pause b6
low 0,5
low 0,5
pause b6
high 0,5
high 0,5
pause b6
low 0,5
low 0,5
pause b6
high 0,5
high 0,5
pause b6
low 0,5
low 1,4
pause b6
high 1,4
high 1,4
pause b6
low 1,4
low 1,4
pause b6
high 1,4
high 1,4
pause b6
low 1,4
low 1,4
pause b6
high 1,4
high 1,4
pause b6
low 1,4
low 2,3
pause b6
high 2,3
high 2,3
pause b6
low 2,3
low 2,3
pause b6
high 2,3
high 2,3
pause b6
low 2,3
low 2,3
pause b6
high 2,3
high 2,3
pause b6
low 2,3
low 1,4
pause b6
high 1,4
high 1,4
pause b6
low 1,4
low 1,4
pause b6
high 1,4
high 1,4
pause b6
low 1,4
low 1,4
pause b6
high 1,4
high 1,4
pause b6
low 1,4
low 0,5
pause b6
high 0,5
high 0,5
pause b6
low 0,5
low 0,5
pause b6
high 0,5
high 0,5
pause b6
low 0,5
low 0,5
pause b6
high 0,5
high 0,5
pause b6
low 0,5
low 1,4
pause b6
high 1,4
high 1,4
pause b6
low 1,4
low 1,4
pause b6
high 1,4
high 1,4
pause b6
low 1,4
low 1,4
pause b6
high 1,4
high 1,4
pause b6
low 1,4
low 2,3
pause b6
high 2,3
high 2,3
pause b6
low 2,3
low 2,3
pause b6
high 2,3
high 2,3
pause b6
low 2,3
low 2,3
pause b6
high 2,3
high 2,3
pause b6
low 2,3
low 1,4
pause b6
high 1,4
high 1,4
pause b6
low 1,4
low 1,4
pause b6
high 1,4
high 1,4
pause b6
low 1,4
low 1,4
pause b6
high 1,4
high 1,4
pause b6
low 1,4
low 0,5
pause b6
high 0,5
high 0,5
pause b6
low 0,5
low 0,5
pause b6
high 0,5
high 0,5
pause b6
low 0,5
low 0,5
pause b6
high 0,5
high 0,5
pause b6
low 0,5
low 1,4
pause b6
high 1,4
high 1,4
pause b6
low 1,4
low 1,4
pause b6
high 1,4
high 1,4
pause b6
low 1,4
low 1,4
pause b6
high 1,4
high 1,4
pause b6
low 1,4
pause b5
goto inicio 'salto a inicio
[video=youtube_share;b8ujfZLwO7o]http://youtu.be/b8ujfZLwO7o[/video]
Last edited: