This file contains hidden or 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
| #include "hardware/pio.h" // some constant definitions used | |
| #include "pico/stdlib.h" // for demo section (printf) | |
| #include <array> // for demo section (commands container) | |
| #include <iterator> // for demo section (commands container) | |
| #include <span> // for demo section (commands container) | |
| #include <algorithm> // for_each | |
| #include <numeric> // for demo section (accumulate) | |
| import stepper; // PIO stepper lib |
This file contains hidden or 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
| C++ callback manager class with templated handler parameters | |
| check readme.MD | |
| now in its own repository https://github.com/jancumps/callbackmanager | |
| the gists below support running on Arduino (except AVR), or a GCC toolchain lower than 14.2 | |
| in other cases, use the repository code instead. |
This file contains hidden or 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
| /* | |
| Lora_LED_ON_OFF: The Things Network testsketch that integrates with their payload formatters and tutorials | |
| Altrnative for the no longer available LoRa LED/ON off basic sketch: | |
| Please refer to https://create.arduino.cc/editor/FT-CONTENT/043f42fb-2b04-4cfb-a277-b1a3dd5366c2/preview | |
| Jan Cumps 15-03-2024 | |
| With code from: | |
| Lora Send And Receive |
This file contains hidden or 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
| #include <algorithm> | |
| #include <span> | |
| #include <iterator> | |
| #include <numeric> | |
| #include <stdint.h> | |
| #include <stdio.h> | |
| #define SAMPLES (10) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
| set projectname myProject | |
| set projectroot C:/xilinx_vivado_prj | |
| create_project $projectname $projectroot/$projectname -part xc7z020clg400-1 | |
| set_property board_part tul.com.tw:pynq-z2:part0:1.0 [current_project] | |
| set_property target_language VHDL [current_project] | |
| create_bd_design "design_1" | |
| startgroup | |
| create_bd_cell -type ip -vlnv xilinx.com:ip:processing_system7:5.5 processing_system7_0 |
This file contains hidden or 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
| library IEEE; | |
| use IEEE.STD_LOGIC_1164.ALL; | |
| use IEEE.NUMERIC_STD.ALL; | |
| entity variable_clock is | |
| Port ( | |
| clk_i : in STD_LOGIC; | |
| resetn_i : in STD_LOGIC; | |
| ticks_i : in STD_LOGIC_VECTOR (7 downto 0); | |
| clk_o : out STD_LOGIC |
This file contains hidden or 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
| set project_path [get_property directory [current_project]] | |
| set project_file [file rootname $project_path] | |
| set __project [current_project] | |
| set hw_dir [file dirname [get_files *.hwh]] | |
| set hwhandoff [glob [file join $hw_dir *.hwh]] | |
| set bitstream [glob [file join $project_path $__project.runs impl_1 *.bit]] | |
| #gather in the .prj directory | |
| file copy -force $hwhandoff $project_file.hwh | |
| file copy -force $bitstream $project_file.bit |
This file contains hidden or 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
| library IEEE; | |
| use IEEE.STD_LOGIC_1164.ALL; | |
| use IEEE.NUMERIC_STD.ALL; | |
| entity quadrature_oscillator is | |
| Port ( | |
| i_clk: in std_logic; | |
| i_nReset: in std_logic; | |
| o_outputs: out std_logic_vector (3 downto 0) | |
| ); |
This file contains hidden or 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
| -- from Micheal Kellett: https://www.element14.com/community/groups/fpga-group/blog/2021/07/31/cheap-cyclone-10 | |
| library IEEE; | |
| use IEEE.std_logic_1164.all; | |
| use IEEE.NUMERIC_STD.all; | |
| entity mem_inf_sp_1024_12 is | |
| port( | |
| we : in STD_LOGIC; |
NewerOlder