Initial Release
This commit is contained in:
13
pio/squarewave/squarewave.pio
Normal file
13
pio/squarewave/squarewave.pio
Normal file
@@ -0,0 +1,13 @@
|
||||
;
|
||||
; Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
|
||||
;
|
||||
; SPDX-License-Identifier: BSD-3-Clause
|
||||
;
|
||||
|
||||
.program squarewave
|
||||
set pindirs, 1 ; Set pin to output
|
||||
again:
|
||||
set pins, 1 [1] ; Drive pin high and then delay for one cycle
|
||||
set pins, 0 ; Drive pin low
|
||||
jmp again ; Set PC to label `again`
|
||||
|
||||
Reference in New Issue
Block a user