Search the Community
Showing results for tags 'buttons'.
-
I am completly new for the FPGA and basys3 development board. I have a project for Counter on the 7 segment displays on the board. We got 3 different layers as a design. cntr cntr_rtl cntr_top cntr_top_struc io_ctrl io_ctrl_rtl And in the project it has to diplay on the 7 segment controlled by the switches : count up / count down / hold / reset options: The priorities for these switches are: 1. reset 2. hold 3. count direction top level VHDL file cntr_top.vhd Port Name Direction Description clk_i In System clo
-
I am new to all this. I want to run two dc motors but I want to start them after I press button btn1 and stop after btn2 is pressed. This is my first try. #include <MotorShield.h> // the setup routine runs once when you press reset: void setup() { // initialize serial communication at 9600 bits per second: Serial.begin(9600); } // the loop routine runs over and over again forever: void loop() { // read the input pin: int buttonState = readButton(btn1); // print out the state of the button: Serial.println(buttonState); delay(1); // delay i