From 113ebd89d1c50b0cb79e95803dddc398f1985ade Mon Sep 17 00:00:00 2001 From: Vladimir Garistov Date: Mon, 7 Nov 2022 03:03:58 +0200 Subject: [PATCH] Ordered the examples --- .../7-segm_bidirectional_counter.ino | 0 .../7-segm_bidirectional_counter.png | Bin .../tinkercad_link.txt | 0 .../7-segm_byte_display.ino | 0 .../7-segm_byte_display.png | Bin .../7-segm_byte_display/tinkercad_link.txt | 0 .../7-segm_driver/7-segm_driver.ino | 0 .../7-segm_driver/7-segm_driver.png | Bin .../7-segm_driver/tinkercad_link.txt | 0 .../7-segm_driver_random.ino | 0 .../7-segm_driver_random.png | Bin .../7-segm_driver_random/tinkercad_link.txt | 0 .../{ => 7-segment}/7-segm_raw/7-segm_raw.ino | 0 .../{ => 7-segment}/7-segm_raw/7-segm_raw.png | Bin .../7-segm_raw/tinkercad_link.txt | 0 .../7-segm_raw_dynamic/7-segm_raw_dynamic.ino | 0 .../7-segm_raw_dynamic/7-segm_raw_dynamic.png | Bin .../7-segm_raw_dynamic/tinkercad_link.txt | 0 .../7-segm_raw_dynamic_timer.PDF | Bin .../7-segm_raw_dynamic_timer.ino | 0 .../7-segm_raw_dynamic_timer.ino.standard.hex | 0 ...mic_timer.ino.with_bootloader.standard.hex | 0 .../7-segm_raw_dynamic_timer.pdsprj | Bin ....pdsprj.DESKTOP-DNPR54D.Cartogan.workspace | 0 ...c_timer.pdsprj.VANKATA-513.ivans.workspace | 0 .../7-segm_raw_dynamic_timer.png | Bin .../Backup Of 7-segm_raw_dynamic_timer.pdsbak | Bin ...ast Loaded 7-segm_raw_dynamic_timer.pdsbak | Bin .../7-segm_shield/7-segm_shield.ino | 0 Examples/Demo_test/Demo_test.ino | 79 ------------------ ...3x3-LED_BTN-Matrix-Transpose-Schematic.png | Bin .../3x3-LED_BTN-Matrix-Transpose.ino | 0 .../tinkercad_link.txt | 0 .../Digital_Blink_with_Button-Schematic.png | Bin .../Digital_Blink_with_Button.ino | 0 .../Register_Blink/Register_Blink.ino | 0 .../I2C_2x_with interrupt_to_master.png | Bin .../I2C_interrupt_to_master_master.ino | 0 .../I2C_interrupt_to_master_slave1.ino | 0 .../I2C_interrupt_to_master_slave2.ino | 0 .../tinkercad_link.txt | 0 .../I2C_interrupt_to_master.png | Bin .../I2C_interrupt_to_master_master.ino | 0 .../I2C_interrupt_to_master_slave.ino | 0 .../tinkercad_link.txt | 0 .../I2C_simple_demo/I2C_simple_demo.png | Bin .../I2C_simple_demo_master.ino | 0 .../I2C_simple_demo_slave.ino | 0 .../I2C_simple_demo/tinkercad_link.txt | 0 .../LCD_bidirectional_counter.ino | 0 .../LCD_bidirectional_counter.png | Bin .../tinkercad_link.txt | 0 .../LCD_custom_characters.ino | 0 .../LCD_custom_characters.png | Bin .../LCD_custom_characters/tinkercad_link.txt | 0 Examples/{ => LCD}/LCD_scroll/LCD_scroll.ino | 0 Examples/{ => LCD}/LCD_scroll/LCD_scroll.png | Bin .../{ => LCD}/LCD_scroll/tinkercad_link.txt | 0 .../LCD_scroll_multiple.ino | 0 .../LCD_scroll_multiple.png | Bin .../LCD_scroll_multiple/tinkercad_link.txt | 0 .../LCD_without_library.ino | 0 .../LCD_without_library.png | Bin .../LCD_without_library/tinkercad_link.txt | 0 .../LCD_without_library_simple.ino | 0 .../LCD_without_library_simple.png | Bin .../tinkercad_link.txt | 0 .../Big_LED_strip/Big_LED_strip.ino | 0 .../Big_LED_strip/Big_LED_strip.png | Bin .../{ => LED_strip}/Big_LED_strip/elsys.ppm | Bin .../Big_LED_strip/tinkercad_link.txt | 0 .../{ => LED_strip}/Car_dodge/Car_dodge.ino | 0 .../{ => LED_strip}/Car_dodge/Car_dodge.png | Bin .../Car_dodge/tinkercad_link.txt | 0 .../Gamma_LUT_generator.ino | 0 ...Strip Moving LED - Interrupt Tinkercad.png | Bin .../LED_Strip_Moving_LED_-_Interrupt.ino | 0 ...D Strip Moving LED - Polling Tinkercad.png | Bin .../LED_Strip_Moving_LED_-_Polling.ino | 0 .../PWM_Gamma_Correction.ino | 0 .../RGB_Gamma_Correction.ino | 0 .../RGB_Gamma_Correction_Multicolor.ino | 0 .../TUES-LED_strip_1/TUES-LED_strip_1.ino | 0 .../TUES-LED_strip_1/TUES-LED_strip_1.png | Bin .../TUES-LED_strip_1/WS2812B.pdf | Bin .../TUES-LED_strip_1/mona_lisa.ppm | Bin .../TUES-LED_strip_1/nozdra.ppm | 0 .../TUES-LED_strip_1/rick_astley.jpg | Bin .../TUES-LED_strip_1/sako.ppm.txt | 0 .../TUES-LED_strip_1/tinkercad_link.txt | 0 .../Analog_Serial_Send_-_LDR-Schematic.png | Bin .../Analog_Serial_Send_-_LDR.ino | 0 ...uction-to-UART-Packet-Frame-and-Bits-2.png | Bin Examples/{ => UART}/UART-Send/UART-Send.ino | 0 .../UART-Signal-Sending_ASCII-V-CR-LF.bmp | Bin .../UART-Signal-Sending_ASCII-V-Zoomed.bmp | Bin .../UART-Send/UART-Signal-Sending_ASCII-V.bmp | Bin .../UART-Send/UnderstandingUART.jpg | Bin .../EXTI0_Register_Demo.ino | 0 .../{ => interrupts}/EXTI_Demo/EXTI_Demo.ino | 0 .../external_interrupt/external_interrupt.ino | 0 .../external_interrupt/external_interrupt.png | Bin .../external_interrupt/tinkercad_link.txt | 0 .../pin_change_demo/pin_change_demo.ino | 0 .../DC_motor_and_servo/DC_motor_and_servo.ino | 0 .../DC_motor_and_servo/DC_motor_and_servo.png | Bin ...D_example_schematic_with_two_DC_motors.png | Bin .../DC_motor_and_servo/tinkercad_link.txt | 0 .../DC_motor_speed_control.ino | 0 .../DC_motor_speed_control.png | Bin .../DC_motor_speed_control/tinkercad_link.txt | 0 .../Backup Of Stepper_demo.pdsbak | Bin Examples/{ => motors}/Stepper_demo/Drive.png | Bin .../Last Loaded Stepper_demo.pdsbak | Bin .../Stepper_demo/Stepper_demo.PDF | Bin .../Stepper_demo/Stepper_demo.pdsprj | Bin ....pdsprj.DESKTOP-Q6QBCIN.Cartogan.workspace | 0 .../bipolar-vs-unipolar-stepper-motors.gif | Bin .../stepper_demo_delay/stepper_demo_delay.ino | 0 .../stepper_demo_timer/stepper_demo_timer.ino | 0 .../Stepper_demo/stepper_motor.jpg | Bin .../Stepper_demo/stepper_motor_animated.gif | Bin .../Demo_test - Tinkercad - Schematic.png | Bin Examples/other/Demo_test/Demo_test.ino | 72 ++++++++++++++++ .../{ => other}/Demo_test/tinkercad_link.txt | 1 - .../Timer_1_COMPA_Toggle_pin_13_at_1Hz.ino | 0 .../Timer_1_COMPA_Toggle_pin_13_at_1Hz.png | Bin .../Timer_1_COMPA_and_OVF_10kHz_PWM.ino | 0 .../Timer_1_COMPA_and_OVF_10kHz_PWM.png | Bin .../tinkercad_link.txt | 0 .../Timer_1_CompMatchA_Interrupt.ino | 0 ...link_pin_9_at_1Hz_with_external_enable.ino | 0 ...link_pin_9_at_1Hz_with_external_enable.png | Bin .../tinkercad_link.txt | 0 .../Timer_DIP_switch_frequency.ino | 0 .../Timer_DIP_switch_frequency.png | Bin .../tinkercad_link.txt | 0 .../Timer_PWM_10kHz_D25.ino | 0 .../Timer_PWM_10kHz_D50.ino | 0 .../Timer_PWM_2Hz_D25/Timer_PWM_2Hz_D25.ino | 0 .../Timer_PWM_2Hz_D80/Timer_PWM_2Hz_D80.ino | 0 141 files changed, 72 insertions(+), 80 deletions(-) rename Examples/{ => 7-segment}/7-segm_bidirectional_counter/7-segm_bidirectional_counter.ino (100%) rename Examples/{ => 7-segment}/7-segm_bidirectional_counter/7-segm_bidirectional_counter.png (100%) rename Examples/{ => 7-segment}/7-segm_bidirectional_counter/tinkercad_link.txt (100%) rename Examples/{ => 7-segment}/7-segm_byte_display/7-segm_byte_display.ino (100%) rename Examples/{ => 7-segment}/7-segm_byte_display/7-segm_byte_display.png (100%) rename Examples/{ => 7-segment}/7-segm_byte_display/tinkercad_link.txt (100%) rename Examples/{ => 7-segment}/7-segm_driver/7-segm_driver.ino (100%) rename Examples/{ => 7-segment}/7-segm_driver/7-segm_driver.png (100%) rename Examples/{ => 7-segment}/7-segm_driver/tinkercad_link.txt (100%) rename Examples/{ => 7-segment}/7-segm_driver_random/7-segm_driver_random.ino (100%) rename Examples/{ => 7-segment}/7-segm_driver_random/7-segm_driver_random.png (100%) rename Examples/{ => 7-segment}/7-segm_driver_random/tinkercad_link.txt (100%) rename Examples/{ => 7-segment}/7-segm_raw/7-segm_raw.ino (100%) rename Examples/{ => 7-segment}/7-segm_raw/7-segm_raw.png (100%) rename Examples/{ => 7-segment}/7-segm_raw/tinkercad_link.txt (100%) rename Examples/{ => 7-segment}/7-segm_raw_dynamic/7-segm_raw_dynamic.ino (100%) rename Examples/{ => 7-segment}/7-segm_raw_dynamic/7-segm_raw_dynamic.png (100%) rename Examples/{ => 7-segment}/7-segm_raw_dynamic/tinkercad_link.txt (100%) rename Examples/{ => 7-segment}/7-segm_raw_dynamic_timer/7-segm_raw_dynamic_timer.PDF (100%) rename Examples/{ => 7-segment}/7-segm_raw_dynamic_timer/7-segm_raw_dynamic_timer.ino (100%) rename Examples/{ => 7-segment}/7-segm_raw_dynamic_timer/7-segm_raw_dynamic_timer.ino.standard.hex (100%) rename Examples/{ => 7-segment}/7-segm_raw_dynamic_timer/7-segm_raw_dynamic_timer.ino.with_bootloader.standard.hex (100%) rename Examples/{ => 7-segment}/7-segm_raw_dynamic_timer/7-segm_raw_dynamic_timer.pdsprj (100%) rename Examples/{ => 7-segment}/7-segm_raw_dynamic_timer/7-segm_raw_dynamic_timer.pdsprj.DESKTOP-DNPR54D.Cartogan.workspace (100%) rename Examples/{ => 7-segment}/7-segm_raw_dynamic_timer/7-segm_raw_dynamic_timer.pdsprj.VANKATA-513.ivans.workspace (100%) rename Examples/{ => 7-segment}/7-segm_raw_dynamic_timer/7-segm_raw_dynamic_timer.png (100%) rename Examples/{ => 7-segment}/7-segm_raw_dynamic_timer/Backup Of 7-segm_raw_dynamic_timer.pdsbak (100%) rename Examples/{ => 7-segment}/7-segm_raw_dynamic_timer/Last Loaded 7-segm_raw_dynamic_timer.pdsbak (100%) rename Examples/{ => 7-segment}/7-segm_shield/7-segm_shield.ino (100%) delete mode 100644 Examples/Demo_test/Demo_test.ino rename Examples/{ => GPIO}/3x3-LED_BTN-Matrix-Transpose/3x3-LED_BTN-Matrix-Transpose-Schematic.png (100%) rename Examples/{ => GPIO}/3x3-LED_BTN-Matrix-Transpose/3x3-LED_BTN-Matrix-Transpose.ino (100%) rename Examples/{ => GPIO}/3x3-LED_BTN-Matrix-Transpose/tinkercad_link.txt (100%) rename Examples/{ => GPIO}/Digital_Blink_with_Button/Digital_Blink_with_Button-Schematic.png (100%) rename Examples/{ => GPIO}/Digital_Blink_with_Button/Digital_Blink_with_Button.ino (100%) rename Examples/{ => GPIO}/Register_Blink/Register_Blink.ino (100%) rename Examples/{ => I2C}/I2C_2x_interrupt_to_master/I2C_2x_with interrupt_to_master.png (100%) rename Examples/{ => I2C}/I2C_2x_interrupt_to_master/I2C_interrupt_to_master_master/I2C_interrupt_to_master_master.ino (100%) rename Examples/{ => I2C}/I2C_2x_interrupt_to_master/I2C_interrupt_to_master_slave1/I2C_interrupt_to_master_slave1.ino (100%) rename Examples/{ => I2C}/I2C_2x_interrupt_to_master/I2C_interrupt_to_master_slave2/I2C_interrupt_to_master_slave2.ino (100%) rename Examples/{ => I2C}/I2C_2x_interrupt_to_master/tinkercad_link.txt (100%) rename Examples/{ => I2C}/I2C_interrupt_to_master/I2C_interrupt_to_master.png (100%) rename Examples/{ => I2C}/I2C_interrupt_to_master/I2C_interrupt_to_master_master/I2C_interrupt_to_master_master.ino (100%) rename Examples/{ => I2C}/I2C_interrupt_to_master/I2C_interrupt_to_master_slave/I2C_interrupt_to_master_slave.ino (100%) rename Examples/{ => I2C}/I2C_interrupt_to_master/tinkercad_link.txt (100%) rename Examples/{ => I2C}/I2C_simple_demo/I2C_simple_demo.png (100%) rename Examples/{ => I2C}/I2C_simple_demo/I2C_simple_demo_master/I2C_simple_demo_master.ino (100%) rename Examples/{ => I2C}/I2C_simple_demo/I2C_simple_demo_slave/I2C_simple_demo_slave.ino (100%) rename Examples/{ => I2C}/I2C_simple_demo/tinkercad_link.txt (100%) rename Examples/{ => LCD}/LCD_bidirectional_counter/LCD_bidirectional_counter.ino (100%) rename Examples/{ => LCD}/LCD_bidirectional_counter/LCD_bidirectional_counter.png (100%) rename Examples/{ => LCD}/LCD_bidirectional_counter/tinkercad_link.txt (100%) rename Examples/{ => LCD}/LCD_custom_characters/LCD_custom_characters.ino (100%) rename Examples/{ => LCD}/LCD_custom_characters/LCD_custom_characters.png (100%) rename Examples/{ => LCD}/LCD_custom_characters/tinkercad_link.txt (100%) rename Examples/{ => LCD}/LCD_scroll/LCD_scroll.ino (100%) rename Examples/{ => LCD}/LCD_scroll/LCD_scroll.png (100%) rename Examples/{ => LCD}/LCD_scroll/tinkercad_link.txt (100%) rename Examples/{ => LCD}/LCD_scroll_multiple/LCD_scroll_multiple.ino (100%) rename Examples/{ => LCD}/LCD_scroll_multiple/LCD_scroll_multiple.png (100%) rename Examples/{ => LCD}/LCD_scroll_multiple/tinkercad_link.txt (100%) rename Examples/{ => LCD}/LCD_without_library/LCD_without_library.ino (100%) rename Examples/{ => LCD}/LCD_without_library/LCD_without_library.png (100%) rename Examples/{ => LCD}/LCD_without_library/tinkercad_link.txt (100%) rename Examples/{ => LCD}/LCD_without_library_simple/LCD_without_library_simple.ino (100%) rename Examples/{ => LCD}/LCD_without_library_simple/LCD_without_library_simple.png (100%) rename Examples/{ => LCD}/LCD_without_library_simple/tinkercad_link.txt (100%) rename Examples/{ => LED_strip}/Big_LED_strip/Big_LED_strip.ino (100%) rename Examples/{ => LED_strip}/Big_LED_strip/Big_LED_strip.png (100%) rename Examples/{ => LED_strip}/Big_LED_strip/elsys.ppm (100%) rename Examples/{ => LED_strip}/Big_LED_strip/tinkercad_link.txt (100%) rename Examples/{ => LED_strip}/Car_dodge/Car_dodge.ino (100%) rename Examples/{ => LED_strip}/Car_dodge/Car_dodge.png (100%) rename Examples/{ => LED_strip}/Car_dodge/tinkercad_link.txt (100%) rename Examples/{ => LED_strip}/Gamma_LUT_generator/Gamma_LUT_generator.ino (100%) rename Examples/{ => LED_strip}/LED_Strip_Moving_LED_-_Interrupt/LED Strip Moving LED - Interrupt Tinkercad.png (100%) rename Examples/{ => LED_strip}/LED_Strip_Moving_LED_-_Interrupt/LED_Strip_Moving_LED_-_Interrupt.ino (100%) rename Examples/{ => LED_strip}/LED_Strip_Moving_LED_-_Polling/LED Strip Moving LED - Polling Tinkercad.png (100%) rename Examples/{ => LED_strip}/LED_Strip_Moving_LED_-_Polling/LED_Strip_Moving_LED_-_Polling.ino (100%) rename Examples/{ => LED_strip}/PWM_Gamma_Correction/PWM_Gamma_Correction.ino (100%) rename Examples/{ => LED_strip}/RGB_Gamma_Correction/RGB_Gamma_Correction.ino (100%) rename Examples/{ => LED_strip}/RGB_Gamma_Correction_Multicolor/RGB_Gamma_Correction_Multicolor.ino (100%) rename Examples/{ => LED_strip}/TUES-LED_strip_1/TUES-LED_strip_1.ino (100%) rename Examples/{ => LED_strip}/TUES-LED_strip_1/TUES-LED_strip_1.png (100%) rename Examples/{ => LED_strip}/TUES-LED_strip_1/WS2812B.pdf (100%) rename Examples/{ => LED_strip}/TUES-LED_strip_1/mona_lisa.ppm (100%) rename Examples/{ => LED_strip}/TUES-LED_strip_1/nozdra.ppm (100%) rename Examples/{ => LED_strip}/TUES-LED_strip_1/rick_astley.jpg (100%) rename Examples/{ => LED_strip}/TUES-LED_strip_1/sako.ppm.txt (100%) rename Examples/{ => LED_strip}/TUES-LED_strip_1/tinkercad_link.txt (100%) rename Examples/{ => UART}/Analog_Serial_Send_-_LDR/Analog_Serial_Send_-_LDR-Schematic.png (100%) rename Examples/{ => UART}/Analog_Serial_Send_-_LDR/Analog_Serial_Send_-_LDR.ino (100%) rename Examples/{ => UART}/UART-Send/Introduction-to-UART-Packet-Frame-and-Bits-2.png (100%) rename Examples/{ => UART}/UART-Send/UART-Send.ino (100%) rename Examples/{ => UART}/UART-Send/UART-Signal-Sending_ASCII-V-CR-LF.bmp (100%) rename Examples/{ => UART}/UART-Send/UART-Signal-Sending_ASCII-V-Zoomed.bmp (100%) rename Examples/{ => UART}/UART-Send/UART-Signal-Sending_ASCII-V.bmp (100%) rename Examples/{ => UART}/UART-Send/UnderstandingUART.jpg (100%) rename Examples/{ => interrupts}/EXTI0_Register_Demo/EXTI0_Register_Demo.ino (100%) rename Examples/{ => interrupts}/EXTI_Demo/EXTI_Demo.ino (100%) rename Examples/{ => interrupts}/external_interrupt/external_interrupt.ino (100%) rename Examples/{ => interrupts}/external_interrupt/external_interrupt.png (100%) rename Examples/{ => interrupts}/external_interrupt/tinkercad_link.txt (100%) rename Examples/{ => interrupts}/pin_change_demo/pin_change_demo.ino (100%) rename Examples/{ => motors}/DC_motor_and_servo/DC_motor_and_servo.ino (100%) rename Examples/{ => motors}/DC_motor_and_servo/DC_motor_and_servo.png (100%) rename Examples/{ => motors}/DC_motor_and_servo/L293D_example_schematic_with_two_DC_motors.png (100%) rename Examples/{ => motors}/DC_motor_and_servo/tinkercad_link.txt (100%) rename Examples/{ => motors}/DC_motor_speed_control/DC_motor_speed_control.ino (100%) rename Examples/{ => motors}/DC_motor_speed_control/DC_motor_speed_control.png (100%) rename Examples/{ => motors}/DC_motor_speed_control/tinkercad_link.txt (100%) rename Examples/{ => motors}/Stepper_demo/Backup Of Stepper_demo.pdsbak (100%) rename Examples/{ => motors}/Stepper_demo/Drive.png (100%) rename Examples/{ => motors}/Stepper_demo/Last Loaded Stepper_demo.pdsbak (100%) rename Examples/{ => motors}/Stepper_demo/Stepper_demo.PDF (100%) rename Examples/{ => motors}/Stepper_demo/Stepper_demo.pdsprj (100%) rename Examples/{ => motors}/Stepper_demo/Stepper_demo.pdsprj.DESKTOP-Q6QBCIN.Cartogan.workspace (100%) rename Examples/{ => motors}/Stepper_demo/bipolar-vs-unipolar-stepper-motors.gif (100%) rename Examples/{ => motors}/Stepper_demo/stepper_demo_delay/stepper_demo_delay.ino (100%) rename Examples/{ => motors}/Stepper_demo/stepper_demo_timer/stepper_demo_timer.ino (100%) rename Examples/{ => motors}/Stepper_demo/stepper_motor.jpg (100%) rename Examples/{ => motors}/Stepper_demo/stepper_motor_animated.gif (100%) rename Examples/{ => other}/Demo_test/Demo_test - Tinkercad - Schematic.png (100%) create mode 100644 Examples/other/Demo_test/Demo_test.ino rename Examples/{ => other}/Demo_test/tinkercad_link.txt (54%) rename Examples/{ => timer}/Timer_1_COMPA_Toggle_pin_13_at_1Hz/Timer_1_COMPA_Toggle_pin_13_at_1Hz.ino (100%) rename Examples/{ => timer}/Timer_1_COMPA_Toggle_pin_13_at_1Hz/Timer_1_COMPA_Toggle_pin_13_at_1Hz.png (100%) rename Examples/{ => timer}/Timer_1_COMPA_and_OVF_10kHz_PWM/Timer_1_COMPA_and_OVF_10kHz_PWM.ino (100%) rename Examples/{ => timer}/Timer_1_COMPA_and_OVF_10kHz_PWM/Timer_1_COMPA_and_OVF_10kHz_PWM.png (100%) rename Examples/{ => timer}/Timer_1_COMPA_and_OVF_10kHz_PWM/tinkercad_link.txt (100%) rename Examples/{ => timer}/Timer_1_CompMatchA_Interrupt/Timer_1_CompMatchA_Interrupt.ino (100%) rename Examples/{ => timer}/Timer_1_OC1A_Blink_pin_9_at_1Hz_with_external_enable/Timer_1_OC1A_Blink_pin_9_at_1Hz_with_external_enable.ino (100%) rename Examples/{ => timer}/Timer_1_OC1A_Blink_pin_9_at_1Hz_with_external_enable/Timer_1_OC1A_Blink_pin_9_at_1Hz_with_external_enable.png (100%) rename Examples/{ => timer}/Timer_1_OC1A_Blink_pin_9_at_1Hz_with_external_enable/tinkercad_link.txt (100%) rename Examples/{ => timer}/Timer_DIP_switch_frequency/Timer_DIP_switch_frequency.ino (100%) rename Examples/{ => timer}/Timer_DIP_switch_frequency/Timer_DIP_switch_frequency.png (100%) rename Examples/{ => timer}/Timer_DIP_switch_frequency/tinkercad_link.txt (100%) rename Examples/{ => timer}/Timer_PWM_10kHz_D25/Timer_PWM_10kHz_D25.ino (100%) rename Examples/{ => timer}/Timer_PWM_10kHz_D50/Timer_PWM_10kHz_D50.ino (100%) rename Examples/{ => timer}/Timer_PWM_2Hz_D25/Timer_PWM_2Hz_D25.ino (100%) rename Examples/{ => timer}/Timer_PWM_2Hz_D80/Timer_PWM_2Hz_D80.ino (100%) diff --git a/Examples/7-segm_bidirectional_counter/7-segm_bidirectional_counter.ino b/Examples/7-segment/7-segm_bidirectional_counter/7-segm_bidirectional_counter.ino similarity index 100% rename from Examples/7-segm_bidirectional_counter/7-segm_bidirectional_counter.ino rename to Examples/7-segment/7-segm_bidirectional_counter/7-segm_bidirectional_counter.ino diff --git a/Examples/7-segm_bidirectional_counter/7-segm_bidirectional_counter.png b/Examples/7-segment/7-segm_bidirectional_counter/7-segm_bidirectional_counter.png similarity index 100% rename from Examples/7-segm_bidirectional_counter/7-segm_bidirectional_counter.png rename to Examples/7-segment/7-segm_bidirectional_counter/7-segm_bidirectional_counter.png diff --git a/Examples/7-segm_bidirectional_counter/tinkercad_link.txt b/Examples/7-segment/7-segm_bidirectional_counter/tinkercad_link.txt similarity index 100% rename from Examples/7-segm_bidirectional_counter/tinkercad_link.txt rename to Examples/7-segment/7-segm_bidirectional_counter/tinkercad_link.txt diff --git a/Examples/7-segm_byte_display/7-segm_byte_display.ino b/Examples/7-segment/7-segm_byte_display/7-segm_byte_display.ino similarity index 100% rename from Examples/7-segm_byte_display/7-segm_byte_display.ino rename to Examples/7-segment/7-segm_byte_display/7-segm_byte_display.ino diff --git a/Examples/7-segm_byte_display/7-segm_byte_display.png b/Examples/7-segment/7-segm_byte_display/7-segm_byte_display.png similarity index 100% rename from Examples/7-segm_byte_display/7-segm_byte_display.png rename to Examples/7-segment/7-segm_byte_display/7-segm_byte_display.png diff --git a/Examples/7-segm_byte_display/tinkercad_link.txt b/Examples/7-segment/7-segm_byte_display/tinkercad_link.txt similarity index 100% rename from Examples/7-segm_byte_display/tinkercad_link.txt rename to Examples/7-segment/7-segm_byte_display/tinkercad_link.txt diff --git a/Examples/7-segm_driver/7-segm_driver.ino b/Examples/7-segment/7-segm_driver/7-segm_driver.ino similarity index 100% rename from Examples/7-segm_driver/7-segm_driver.ino rename to Examples/7-segment/7-segm_driver/7-segm_driver.ino diff --git a/Examples/7-segm_driver/7-segm_driver.png b/Examples/7-segment/7-segm_driver/7-segm_driver.png similarity index 100% rename from Examples/7-segm_driver/7-segm_driver.png rename to Examples/7-segment/7-segm_driver/7-segm_driver.png diff --git a/Examples/7-segm_driver/tinkercad_link.txt b/Examples/7-segment/7-segm_driver/tinkercad_link.txt similarity index 100% rename from Examples/7-segm_driver/tinkercad_link.txt rename to Examples/7-segment/7-segm_driver/tinkercad_link.txt diff --git a/Examples/7-segm_driver_random/7-segm_driver_random.ino b/Examples/7-segment/7-segm_driver_random/7-segm_driver_random.ino similarity index 100% rename from Examples/7-segm_driver_random/7-segm_driver_random.ino rename to Examples/7-segment/7-segm_driver_random/7-segm_driver_random.ino diff --git a/Examples/7-segm_driver_random/7-segm_driver_random.png b/Examples/7-segment/7-segm_driver_random/7-segm_driver_random.png similarity index 100% rename from Examples/7-segm_driver_random/7-segm_driver_random.png rename to Examples/7-segment/7-segm_driver_random/7-segm_driver_random.png diff --git a/Examples/7-segm_driver_random/tinkercad_link.txt b/Examples/7-segment/7-segm_driver_random/tinkercad_link.txt similarity index 100% rename from Examples/7-segm_driver_random/tinkercad_link.txt rename to Examples/7-segment/7-segm_driver_random/tinkercad_link.txt diff --git a/Examples/7-segm_raw/7-segm_raw.ino b/Examples/7-segment/7-segm_raw/7-segm_raw.ino similarity index 100% rename from Examples/7-segm_raw/7-segm_raw.ino rename to Examples/7-segment/7-segm_raw/7-segm_raw.ino diff --git a/Examples/7-segm_raw/7-segm_raw.png b/Examples/7-segment/7-segm_raw/7-segm_raw.png similarity index 100% rename from Examples/7-segm_raw/7-segm_raw.png rename to Examples/7-segment/7-segm_raw/7-segm_raw.png diff --git a/Examples/7-segm_raw/tinkercad_link.txt b/Examples/7-segment/7-segm_raw/tinkercad_link.txt similarity index 100% rename from Examples/7-segm_raw/tinkercad_link.txt rename to Examples/7-segment/7-segm_raw/tinkercad_link.txt diff --git a/Examples/7-segm_raw_dynamic/7-segm_raw_dynamic.ino b/Examples/7-segment/7-segm_raw_dynamic/7-segm_raw_dynamic.ino similarity index 100% rename from Examples/7-segm_raw_dynamic/7-segm_raw_dynamic.ino rename to Examples/7-segment/7-segm_raw_dynamic/7-segm_raw_dynamic.ino diff --git a/Examples/7-segm_raw_dynamic/7-segm_raw_dynamic.png b/Examples/7-segment/7-segm_raw_dynamic/7-segm_raw_dynamic.png similarity index 100% rename from Examples/7-segm_raw_dynamic/7-segm_raw_dynamic.png rename to Examples/7-segment/7-segm_raw_dynamic/7-segm_raw_dynamic.png diff --git a/Examples/7-segm_raw_dynamic/tinkercad_link.txt b/Examples/7-segment/7-segm_raw_dynamic/tinkercad_link.txt similarity index 100% rename from Examples/7-segm_raw_dynamic/tinkercad_link.txt rename to Examples/7-segment/7-segm_raw_dynamic/tinkercad_link.txt diff --git a/Examples/7-segm_raw_dynamic_timer/7-segm_raw_dynamic_timer.PDF b/Examples/7-segment/7-segm_raw_dynamic_timer/7-segm_raw_dynamic_timer.PDF similarity index 100% rename from Examples/7-segm_raw_dynamic_timer/7-segm_raw_dynamic_timer.PDF rename to Examples/7-segment/7-segm_raw_dynamic_timer/7-segm_raw_dynamic_timer.PDF diff --git a/Examples/7-segm_raw_dynamic_timer/7-segm_raw_dynamic_timer.ino b/Examples/7-segment/7-segm_raw_dynamic_timer/7-segm_raw_dynamic_timer.ino similarity index 100% rename from Examples/7-segm_raw_dynamic_timer/7-segm_raw_dynamic_timer.ino rename to Examples/7-segment/7-segm_raw_dynamic_timer/7-segm_raw_dynamic_timer.ino diff --git a/Examples/7-segm_raw_dynamic_timer/7-segm_raw_dynamic_timer.ino.standard.hex b/Examples/7-segment/7-segm_raw_dynamic_timer/7-segm_raw_dynamic_timer.ino.standard.hex similarity index 100% rename from Examples/7-segm_raw_dynamic_timer/7-segm_raw_dynamic_timer.ino.standard.hex rename to Examples/7-segment/7-segm_raw_dynamic_timer/7-segm_raw_dynamic_timer.ino.standard.hex diff --git a/Examples/7-segm_raw_dynamic_timer/7-segm_raw_dynamic_timer.ino.with_bootloader.standard.hex b/Examples/7-segment/7-segm_raw_dynamic_timer/7-segm_raw_dynamic_timer.ino.with_bootloader.standard.hex similarity index 100% rename from Examples/7-segm_raw_dynamic_timer/7-segm_raw_dynamic_timer.ino.with_bootloader.standard.hex rename to Examples/7-segment/7-segm_raw_dynamic_timer/7-segm_raw_dynamic_timer.ino.with_bootloader.standard.hex diff --git a/Examples/7-segm_raw_dynamic_timer/7-segm_raw_dynamic_timer.pdsprj b/Examples/7-segment/7-segm_raw_dynamic_timer/7-segm_raw_dynamic_timer.pdsprj similarity index 100% rename from Examples/7-segm_raw_dynamic_timer/7-segm_raw_dynamic_timer.pdsprj rename to Examples/7-segment/7-segm_raw_dynamic_timer/7-segm_raw_dynamic_timer.pdsprj diff --git a/Examples/7-segm_raw_dynamic_timer/7-segm_raw_dynamic_timer.pdsprj.DESKTOP-DNPR54D.Cartogan.workspace b/Examples/7-segment/7-segm_raw_dynamic_timer/7-segm_raw_dynamic_timer.pdsprj.DESKTOP-DNPR54D.Cartogan.workspace similarity index 100% rename from Examples/7-segm_raw_dynamic_timer/7-segm_raw_dynamic_timer.pdsprj.DESKTOP-DNPR54D.Cartogan.workspace rename to Examples/7-segment/7-segm_raw_dynamic_timer/7-segm_raw_dynamic_timer.pdsprj.DESKTOP-DNPR54D.Cartogan.workspace diff --git a/Examples/7-segm_raw_dynamic_timer/7-segm_raw_dynamic_timer.pdsprj.VANKATA-513.ivans.workspace b/Examples/7-segment/7-segm_raw_dynamic_timer/7-segm_raw_dynamic_timer.pdsprj.VANKATA-513.ivans.workspace similarity index 100% rename from Examples/7-segm_raw_dynamic_timer/7-segm_raw_dynamic_timer.pdsprj.VANKATA-513.ivans.workspace rename to Examples/7-segment/7-segm_raw_dynamic_timer/7-segm_raw_dynamic_timer.pdsprj.VANKATA-513.ivans.workspace diff --git a/Examples/7-segm_raw_dynamic_timer/7-segm_raw_dynamic_timer.png b/Examples/7-segment/7-segm_raw_dynamic_timer/7-segm_raw_dynamic_timer.png similarity index 100% rename from Examples/7-segm_raw_dynamic_timer/7-segm_raw_dynamic_timer.png rename to Examples/7-segment/7-segm_raw_dynamic_timer/7-segm_raw_dynamic_timer.png diff --git a/Examples/7-segm_raw_dynamic_timer/Backup Of 7-segm_raw_dynamic_timer.pdsbak b/Examples/7-segment/7-segm_raw_dynamic_timer/Backup Of 7-segm_raw_dynamic_timer.pdsbak similarity index 100% rename from Examples/7-segm_raw_dynamic_timer/Backup Of 7-segm_raw_dynamic_timer.pdsbak rename to Examples/7-segment/7-segm_raw_dynamic_timer/Backup Of 7-segm_raw_dynamic_timer.pdsbak diff --git a/Examples/7-segm_raw_dynamic_timer/Last Loaded 7-segm_raw_dynamic_timer.pdsbak b/Examples/7-segment/7-segm_raw_dynamic_timer/Last Loaded 7-segm_raw_dynamic_timer.pdsbak similarity index 100% rename from Examples/7-segm_raw_dynamic_timer/Last Loaded 7-segm_raw_dynamic_timer.pdsbak rename to Examples/7-segment/7-segm_raw_dynamic_timer/Last Loaded 7-segm_raw_dynamic_timer.pdsbak diff --git a/Examples/7-segm_shield/7-segm_shield.ino b/Examples/7-segment/7-segm_shield/7-segm_shield.ino similarity index 100% rename from Examples/7-segm_shield/7-segm_shield.ino rename to Examples/7-segment/7-segm_shield/7-segm_shield.ino diff --git a/Examples/Demo_test/Demo_test.ino b/Examples/Demo_test/Demo_test.ino deleted file mode 100644 index f32ab5b..0000000 --- a/Examples/Demo_test/Demo_test.ino +++ /dev/null @@ -1,79 +0,0 @@ -#include -#define NUM_PIXELS 10 -#define PIN 12 -Adafruit_NeoPixel strip(NUM_PIXELS, PIN, NEO_GRB); - -#define BTN 2 - -uint8_t colorToggle = 0; - -void changeColor(); - -#define A1 5 -#define A2 6 -#define EN1 13 - -#define POT A3 - -uint16_t count = 0; - -void setup() -{ - strip.begin(); - //changeColor(); - pinMode(2, INPUT_PULLUP); - attachInterrupt(digitalPinToInterrupt(BTN), changeColor, FALLING); - - pinMode(POT, INPUT); - pinMode(A1, OUTPUT); - pinMode(A2, OUTPUT); - pinMode(EN1, OUTPUT); - digitalWrite(EN1, HIGH); - - TCCR1A = 0; - TCCR1B = 0; - TCNT1 = 0; - OCR1A = 0; - OCR1B = 0; - ICR1 = 0; - TIMSK1 = 0; - TIFR1 = 0; - - TCCR1A |= (1 << WGM11) | (1 << COM1B1); - TCCR1B |= (1 << WGM12) | (1 << WGM13); - OCR1B = 781; - ICR1 = 1249; - - TCCR1B |= (1 << CS10) | (1 << CS11); - - //Serial.begin(115200); -} - -void loop() -{ - uint16_t pot_value = analogRead(POT); - pot_value = map(pot_value, 0, 1023, 0, 255); - analogWrite(A1, pot_value); - digitalWrite(A2, LOW); -} - -void changeColor() -{ - if (colorToggle == 1) - { - strip.setPixelColor(2, strip.Color(0, 255, 0)); - colorToggle = 0; - } - else - { - strip.setPixelColor(2, strip.Color(255, 255, 255)); - colorToggle = 1; - } - strip.show(); -} - -ISR(TIMER1_OVF_vect) -{ - count++; - //Serial.println(count); -} diff --git a/Examples/3x3-LED_BTN-Matrix-Transpose/3x3-LED_BTN-Matrix-Transpose-Schematic.png b/Examples/GPIO/3x3-LED_BTN-Matrix-Transpose/3x3-LED_BTN-Matrix-Transpose-Schematic.png similarity index 100% rename from Examples/3x3-LED_BTN-Matrix-Transpose/3x3-LED_BTN-Matrix-Transpose-Schematic.png rename to Examples/GPIO/3x3-LED_BTN-Matrix-Transpose/3x3-LED_BTN-Matrix-Transpose-Schematic.png diff --git a/Examples/3x3-LED_BTN-Matrix-Transpose/3x3-LED_BTN-Matrix-Transpose.ino b/Examples/GPIO/3x3-LED_BTN-Matrix-Transpose/3x3-LED_BTN-Matrix-Transpose.ino similarity index 100% rename from Examples/3x3-LED_BTN-Matrix-Transpose/3x3-LED_BTN-Matrix-Transpose.ino rename to Examples/GPIO/3x3-LED_BTN-Matrix-Transpose/3x3-LED_BTN-Matrix-Transpose.ino diff --git a/Examples/3x3-LED_BTN-Matrix-Transpose/tinkercad_link.txt b/Examples/GPIO/3x3-LED_BTN-Matrix-Transpose/tinkercad_link.txt similarity index 100% rename from Examples/3x3-LED_BTN-Matrix-Transpose/tinkercad_link.txt rename to Examples/GPIO/3x3-LED_BTN-Matrix-Transpose/tinkercad_link.txt diff --git a/Examples/Digital_Blink_with_Button/Digital_Blink_with_Button-Schematic.png b/Examples/GPIO/Digital_Blink_with_Button/Digital_Blink_with_Button-Schematic.png similarity index 100% rename from Examples/Digital_Blink_with_Button/Digital_Blink_with_Button-Schematic.png rename to Examples/GPIO/Digital_Blink_with_Button/Digital_Blink_with_Button-Schematic.png diff --git a/Examples/Digital_Blink_with_Button/Digital_Blink_with_Button.ino b/Examples/GPIO/Digital_Blink_with_Button/Digital_Blink_with_Button.ino similarity index 100% rename from Examples/Digital_Blink_with_Button/Digital_Blink_with_Button.ino rename to Examples/GPIO/Digital_Blink_with_Button/Digital_Blink_with_Button.ino diff --git a/Examples/Register_Blink/Register_Blink.ino b/Examples/GPIO/Register_Blink/Register_Blink.ino similarity index 100% rename from Examples/Register_Blink/Register_Blink.ino rename to Examples/GPIO/Register_Blink/Register_Blink.ino diff --git a/Examples/I2C_2x_interrupt_to_master/I2C_2x_with interrupt_to_master.png b/Examples/I2C/I2C_2x_interrupt_to_master/I2C_2x_with interrupt_to_master.png similarity index 100% rename from Examples/I2C_2x_interrupt_to_master/I2C_2x_with interrupt_to_master.png rename to Examples/I2C/I2C_2x_interrupt_to_master/I2C_2x_with interrupt_to_master.png diff --git a/Examples/I2C_2x_interrupt_to_master/I2C_interrupt_to_master_master/I2C_interrupt_to_master_master.ino b/Examples/I2C/I2C_2x_interrupt_to_master/I2C_interrupt_to_master_master/I2C_interrupt_to_master_master.ino similarity index 100% rename from Examples/I2C_2x_interrupt_to_master/I2C_interrupt_to_master_master/I2C_interrupt_to_master_master.ino rename to Examples/I2C/I2C_2x_interrupt_to_master/I2C_interrupt_to_master_master/I2C_interrupt_to_master_master.ino diff --git a/Examples/I2C_2x_interrupt_to_master/I2C_interrupt_to_master_slave1/I2C_interrupt_to_master_slave1.ino b/Examples/I2C/I2C_2x_interrupt_to_master/I2C_interrupt_to_master_slave1/I2C_interrupt_to_master_slave1.ino similarity index 100% rename from Examples/I2C_2x_interrupt_to_master/I2C_interrupt_to_master_slave1/I2C_interrupt_to_master_slave1.ino rename to Examples/I2C/I2C_2x_interrupt_to_master/I2C_interrupt_to_master_slave1/I2C_interrupt_to_master_slave1.ino diff --git a/Examples/I2C_2x_interrupt_to_master/I2C_interrupt_to_master_slave2/I2C_interrupt_to_master_slave2.ino b/Examples/I2C/I2C_2x_interrupt_to_master/I2C_interrupt_to_master_slave2/I2C_interrupt_to_master_slave2.ino similarity index 100% rename from Examples/I2C_2x_interrupt_to_master/I2C_interrupt_to_master_slave2/I2C_interrupt_to_master_slave2.ino rename to Examples/I2C/I2C_2x_interrupt_to_master/I2C_interrupt_to_master_slave2/I2C_interrupt_to_master_slave2.ino diff --git a/Examples/I2C_2x_interrupt_to_master/tinkercad_link.txt b/Examples/I2C/I2C_2x_interrupt_to_master/tinkercad_link.txt similarity index 100% rename from Examples/I2C_2x_interrupt_to_master/tinkercad_link.txt rename to Examples/I2C/I2C_2x_interrupt_to_master/tinkercad_link.txt diff --git a/Examples/I2C_interrupt_to_master/I2C_interrupt_to_master.png b/Examples/I2C/I2C_interrupt_to_master/I2C_interrupt_to_master.png similarity index 100% rename from Examples/I2C_interrupt_to_master/I2C_interrupt_to_master.png rename to Examples/I2C/I2C_interrupt_to_master/I2C_interrupt_to_master.png diff --git a/Examples/I2C_interrupt_to_master/I2C_interrupt_to_master_master/I2C_interrupt_to_master_master.ino b/Examples/I2C/I2C_interrupt_to_master/I2C_interrupt_to_master_master/I2C_interrupt_to_master_master.ino similarity index 100% rename from Examples/I2C_interrupt_to_master/I2C_interrupt_to_master_master/I2C_interrupt_to_master_master.ino rename to Examples/I2C/I2C_interrupt_to_master/I2C_interrupt_to_master_master/I2C_interrupt_to_master_master.ino diff --git a/Examples/I2C_interrupt_to_master/I2C_interrupt_to_master_slave/I2C_interrupt_to_master_slave.ino b/Examples/I2C/I2C_interrupt_to_master/I2C_interrupt_to_master_slave/I2C_interrupt_to_master_slave.ino similarity index 100% rename from Examples/I2C_interrupt_to_master/I2C_interrupt_to_master_slave/I2C_interrupt_to_master_slave.ino rename to Examples/I2C/I2C_interrupt_to_master/I2C_interrupt_to_master_slave/I2C_interrupt_to_master_slave.ino diff --git a/Examples/I2C_interrupt_to_master/tinkercad_link.txt b/Examples/I2C/I2C_interrupt_to_master/tinkercad_link.txt similarity index 100% rename from Examples/I2C_interrupt_to_master/tinkercad_link.txt rename to Examples/I2C/I2C_interrupt_to_master/tinkercad_link.txt diff --git a/Examples/I2C_simple_demo/I2C_simple_demo.png b/Examples/I2C/I2C_simple_demo/I2C_simple_demo.png similarity index 100% rename from Examples/I2C_simple_demo/I2C_simple_demo.png rename to Examples/I2C/I2C_simple_demo/I2C_simple_demo.png diff --git a/Examples/I2C_simple_demo/I2C_simple_demo_master/I2C_simple_demo_master.ino b/Examples/I2C/I2C_simple_demo/I2C_simple_demo_master/I2C_simple_demo_master.ino similarity index 100% rename from Examples/I2C_simple_demo/I2C_simple_demo_master/I2C_simple_demo_master.ino rename to Examples/I2C/I2C_simple_demo/I2C_simple_demo_master/I2C_simple_demo_master.ino diff --git a/Examples/I2C_simple_demo/I2C_simple_demo_slave/I2C_simple_demo_slave.ino b/Examples/I2C/I2C_simple_demo/I2C_simple_demo_slave/I2C_simple_demo_slave.ino similarity index 100% rename from Examples/I2C_simple_demo/I2C_simple_demo_slave/I2C_simple_demo_slave.ino rename to Examples/I2C/I2C_simple_demo/I2C_simple_demo_slave/I2C_simple_demo_slave.ino diff --git a/Examples/I2C_simple_demo/tinkercad_link.txt b/Examples/I2C/I2C_simple_demo/tinkercad_link.txt similarity index 100% rename from Examples/I2C_simple_demo/tinkercad_link.txt rename to Examples/I2C/I2C_simple_demo/tinkercad_link.txt diff --git a/Examples/LCD_bidirectional_counter/LCD_bidirectional_counter.ino b/Examples/LCD/LCD_bidirectional_counter/LCD_bidirectional_counter.ino similarity index 100% rename from Examples/LCD_bidirectional_counter/LCD_bidirectional_counter.ino rename to Examples/LCD/LCD_bidirectional_counter/LCD_bidirectional_counter.ino diff --git a/Examples/LCD_bidirectional_counter/LCD_bidirectional_counter.png b/Examples/LCD/LCD_bidirectional_counter/LCD_bidirectional_counter.png similarity index 100% rename from Examples/LCD_bidirectional_counter/LCD_bidirectional_counter.png rename to Examples/LCD/LCD_bidirectional_counter/LCD_bidirectional_counter.png diff --git a/Examples/LCD_bidirectional_counter/tinkercad_link.txt b/Examples/LCD/LCD_bidirectional_counter/tinkercad_link.txt similarity index 100% rename from Examples/LCD_bidirectional_counter/tinkercad_link.txt rename to Examples/LCD/LCD_bidirectional_counter/tinkercad_link.txt diff --git a/Examples/LCD_custom_characters/LCD_custom_characters.ino b/Examples/LCD/LCD_custom_characters/LCD_custom_characters.ino similarity index 100% rename from Examples/LCD_custom_characters/LCD_custom_characters.ino rename to Examples/LCD/LCD_custom_characters/LCD_custom_characters.ino diff --git a/Examples/LCD_custom_characters/LCD_custom_characters.png b/Examples/LCD/LCD_custom_characters/LCD_custom_characters.png similarity index 100% rename from Examples/LCD_custom_characters/LCD_custom_characters.png rename to Examples/LCD/LCD_custom_characters/LCD_custom_characters.png diff --git a/Examples/LCD_custom_characters/tinkercad_link.txt b/Examples/LCD/LCD_custom_characters/tinkercad_link.txt similarity index 100% rename from Examples/LCD_custom_characters/tinkercad_link.txt rename to Examples/LCD/LCD_custom_characters/tinkercad_link.txt diff --git a/Examples/LCD_scroll/LCD_scroll.ino b/Examples/LCD/LCD_scroll/LCD_scroll.ino similarity index 100% rename from Examples/LCD_scroll/LCD_scroll.ino rename to Examples/LCD/LCD_scroll/LCD_scroll.ino diff --git a/Examples/LCD_scroll/LCD_scroll.png b/Examples/LCD/LCD_scroll/LCD_scroll.png similarity index 100% rename from Examples/LCD_scroll/LCD_scroll.png rename to Examples/LCD/LCD_scroll/LCD_scroll.png diff --git a/Examples/LCD_scroll/tinkercad_link.txt b/Examples/LCD/LCD_scroll/tinkercad_link.txt similarity index 100% rename from Examples/LCD_scroll/tinkercad_link.txt rename to Examples/LCD/LCD_scroll/tinkercad_link.txt diff --git a/Examples/LCD_scroll_multiple/LCD_scroll_multiple.ino b/Examples/LCD/LCD_scroll_multiple/LCD_scroll_multiple.ino similarity index 100% rename from Examples/LCD_scroll_multiple/LCD_scroll_multiple.ino rename to Examples/LCD/LCD_scroll_multiple/LCD_scroll_multiple.ino diff --git a/Examples/LCD_scroll_multiple/LCD_scroll_multiple.png b/Examples/LCD/LCD_scroll_multiple/LCD_scroll_multiple.png similarity index 100% rename from Examples/LCD_scroll_multiple/LCD_scroll_multiple.png rename to Examples/LCD/LCD_scroll_multiple/LCD_scroll_multiple.png diff --git a/Examples/LCD_scroll_multiple/tinkercad_link.txt b/Examples/LCD/LCD_scroll_multiple/tinkercad_link.txt similarity index 100% rename from Examples/LCD_scroll_multiple/tinkercad_link.txt rename to Examples/LCD/LCD_scroll_multiple/tinkercad_link.txt diff --git a/Examples/LCD_without_library/LCD_without_library.ino b/Examples/LCD/LCD_without_library/LCD_without_library.ino similarity index 100% rename from Examples/LCD_without_library/LCD_without_library.ino rename to Examples/LCD/LCD_without_library/LCD_without_library.ino diff --git a/Examples/LCD_without_library/LCD_without_library.png b/Examples/LCD/LCD_without_library/LCD_without_library.png similarity index 100% rename from Examples/LCD_without_library/LCD_without_library.png rename to Examples/LCD/LCD_without_library/LCD_without_library.png diff --git a/Examples/LCD_without_library/tinkercad_link.txt b/Examples/LCD/LCD_without_library/tinkercad_link.txt similarity index 100% rename from Examples/LCD_without_library/tinkercad_link.txt rename to Examples/LCD/LCD_without_library/tinkercad_link.txt diff --git a/Examples/LCD_without_library_simple/LCD_without_library_simple.ino b/Examples/LCD/LCD_without_library_simple/LCD_without_library_simple.ino similarity index 100% rename from Examples/LCD_without_library_simple/LCD_without_library_simple.ino rename to Examples/LCD/LCD_without_library_simple/LCD_without_library_simple.ino diff --git a/Examples/LCD_without_library_simple/LCD_without_library_simple.png b/Examples/LCD/LCD_without_library_simple/LCD_without_library_simple.png similarity index 100% rename from Examples/LCD_without_library_simple/LCD_without_library_simple.png rename to Examples/LCD/LCD_without_library_simple/LCD_without_library_simple.png diff --git a/Examples/LCD_without_library_simple/tinkercad_link.txt b/Examples/LCD/LCD_without_library_simple/tinkercad_link.txt similarity index 100% rename from Examples/LCD_without_library_simple/tinkercad_link.txt rename to Examples/LCD/LCD_without_library_simple/tinkercad_link.txt diff --git a/Examples/Big_LED_strip/Big_LED_strip.ino b/Examples/LED_strip/Big_LED_strip/Big_LED_strip.ino similarity index 100% rename from Examples/Big_LED_strip/Big_LED_strip.ino rename to Examples/LED_strip/Big_LED_strip/Big_LED_strip.ino diff --git a/Examples/Big_LED_strip/Big_LED_strip.png b/Examples/LED_strip/Big_LED_strip/Big_LED_strip.png similarity index 100% rename from Examples/Big_LED_strip/Big_LED_strip.png rename to Examples/LED_strip/Big_LED_strip/Big_LED_strip.png diff --git a/Examples/Big_LED_strip/elsys.ppm b/Examples/LED_strip/Big_LED_strip/elsys.ppm similarity index 100% rename from Examples/Big_LED_strip/elsys.ppm rename to Examples/LED_strip/Big_LED_strip/elsys.ppm diff --git a/Examples/Big_LED_strip/tinkercad_link.txt b/Examples/LED_strip/Big_LED_strip/tinkercad_link.txt similarity index 100% rename from Examples/Big_LED_strip/tinkercad_link.txt rename to Examples/LED_strip/Big_LED_strip/tinkercad_link.txt diff --git a/Examples/Car_dodge/Car_dodge.ino b/Examples/LED_strip/Car_dodge/Car_dodge.ino similarity index 100% rename from Examples/Car_dodge/Car_dodge.ino rename to Examples/LED_strip/Car_dodge/Car_dodge.ino diff --git a/Examples/Car_dodge/Car_dodge.png b/Examples/LED_strip/Car_dodge/Car_dodge.png similarity index 100% rename from Examples/Car_dodge/Car_dodge.png rename to Examples/LED_strip/Car_dodge/Car_dodge.png diff --git a/Examples/Car_dodge/tinkercad_link.txt b/Examples/LED_strip/Car_dodge/tinkercad_link.txt similarity index 100% rename from Examples/Car_dodge/tinkercad_link.txt rename to Examples/LED_strip/Car_dodge/tinkercad_link.txt diff --git a/Examples/Gamma_LUT_generator/Gamma_LUT_generator.ino b/Examples/LED_strip/Gamma_LUT_generator/Gamma_LUT_generator.ino similarity index 100% rename from Examples/Gamma_LUT_generator/Gamma_LUT_generator.ino rename to Examples/LED_strip/Gamma_LUT_generator/Gamma_LUT_generator.ino diff --git a/Examples/LED_Strip_Moving_LED_-_Interrupt/LED Strip Moving LED - Interrupt Tinkercad.png b/Examples/LED_strip/LED_Strip_Moving_LED_-_Interrupt/LED Strip Moving LED - Interrupt Tinkercad.png similarity index 100% rename from Examples/LED_Strip_Moving_LED_-_Interrupt/LED Strip Moving LED - Interrupt Tinkercad.png rename to Examples/LED_strip/LED_Strip_Moving_LED_-_Interrupt/LED Strip Moving LED - Interrupt Tinkercad.png diff --git a/Examples/LED_Strip_Moving_LED_-_Interrupt/LED_Strip_Moving_LED_-_Interrupt.ino b/Examples/LED_strip/LED_Strip_Moving_LED_-_Interrupt/LED_Strip_Moving_LED_-_Interrupt.ino similarity index 100% rename from Examples/LED_Strip_Moving_LED_-_Interrupt/LED_Strip_Moving_LED_-_Interrupt.ino rename to Examples/LED_strip/LED_Strip_Moving_LED_-_Interrupt/LED_Strip_Moving_LED_-_Interrupt.ino diff --git a/Examples/LED_Strip_Moving_LED_-_Polling/LED Strip Moving LED - Polling Tinkercad.png b/Examples/LED_strip/LED_Strip_Moving_LED_-_Polling/LED Strip Moving LED - Polling Tinkercad.png similarity index 100% rename from Examples/LED_Strip_Moving_LED_-_Polling/LED Strip Moving LED - Polling Tinkercad.png rename to Examples/LED_strip/LED_Strip_Moving_LED_-_Polling/LED Strip Moving LED - Polling Tinkercad.png diff --git a/Examples/LED_Strip_Moving_LED_-_Polling/LED_Strip_Moving_LED_-_Polling.ino b/Examples/LED_strip/LED_Strip_Moving_LED_-_Polling/LED_Strip_Moving_LED_-_Polling.ino similarity index 100% rename from Examples/LED_Strip_Moving_LED_-_Polling/LED_Strip_Moving_LED_-_Polling.ino rename to Examples/LED_strip/LED_Strip_Moving_LED_-_Polling/LED_Strip_Moving_LED_-_Polling.ino diff --git a/Examples/PWM_Gamma_Correction/PWM_Gamma_Correction.ino b/Examples/LED_strip/PWM_Gamma_Correction/PWM_Gamma_Correction.ino similarity index 100% rename from Examples/PWM_Gamma_Correction/PWM_Gamma_Correction.ino rename to Examples/LED_strip/PWM_Gamma_Correction/PWM_Gamma_Correction.ino diff --git a/Examples/RGB_Gamma_Correction/RGB_Gamma_Correction.ino b/Examples/LED_strip/RGB_Gamma_Correction/RGB_Gamma_Correction.ino similarity index 100% rename from Examples/RGB_Gamma_Correction/RGB_Gamma_Correction.ino rename to Examples/LED_strip/RGB_Gamma_Correction/RGB_Gamma_Correction.ino diff --git a/Examples/RGB_Gamma_Correction_Multicolor/RGB_Gamma_Correction_Multicolor.ino b/Examples/LED_strip/RGB_Gamma_Correction_Multicolor/RGB_Gamma_Correction_Multicolor.ino similarity index 100% rename from Examples/RGB_Gamma_Correction_Multicolor/RGB_Gamma_Correction_Multicolor.ino rename to Examples/LED_strip/RGB_Gamma_Correction_Multicolor/RGB_Gamma_Correction_Multicolor.ino diff --git a/Examples/TUES-LED_strip_1/TUES-LED_strip_1.ino b/Examples/LED_strip/TUES-LED_strip_1/TUES-LED_strip_1.ino similarity index 100% rename from Examples/TUES-LED_strip_1/TUES-LED_strip_1.ino rename to Examples/LED_strip/TUES-LED_strip_1/TUES-LED_strip_1.ino diff --git a/Examples/TUES-LED_strip_1/TUES-LED_strip_1.png b/Examples/LED_strip/TUES-LED_strip_1/TUES-LED_strip_1.png similarity index 100% rename from Examples/TUES-LED_strip_1/TUES-LED_strip_1.png rename to Examples/LED_strip/TUES-LED_strip_1/TUES-LED_strip_1.png diff --git a/Examples/TUES-LED_strip_1/WS2812B.pdf b/Examples/LED_strip/TUES-LED_strip_1/WS2812B.pdf similarity index 100% rename from Examples/TUES-LED_strip_1/WS2812B.pdf rename to Examples/LED_strip/TUES-LED_strip_1/WS2812B.pdf diff --git a/Examples/TUES-LED_strip_1/mona_lisa.ppm b/Examples/LED_strip/TUES-LED_strip_1/mona_lisa.ppm similarity index 100% rename from Examples/TUES-LED_strip_1/mona_lisa.ppm rename to Examples/LED_strip/TUES-LED_strip_1/mona_lisa.ppm diff --git a/Examples/TUES-LED_strip_1/nozdra.ppm b/Examples/LED_strip/TUES-LED_strip_1/nozdra.ppm similarity index 100% rename from Examples/TUES-LED_strip_1/nozdra.ppm rename to Examples/LED_strip/TUES-LED_strip_1/nozdra.ppm diff --git a/Examples/TUES-LED_strip_1/rick_astley.jpg b/Examples/LED_strip/TUES-LED_strip_1/rick_astley.jpg similarity index 100% rename from Examples/TUES-LED_strip_1/rick_astley.jpg rename to Examples/LED_strip/TUES-LED_strip_1/rick_astley.jpg diff --git a/Examples/TUES-LED_strip_1/sako.ppm.txt b/Examples/LED_strip/TUES-LED_strip_1/sako.ppm.txt similarity index 100% rename from Examples/TUES-LED_strip_1/sako.ppm.txt rename to Examples/LED_strip/TUES-LED_strip_1/sako.ppm.txt diff --git a/Examples/TUES-LED_strip_1/tinkercad_link.txt b/Examples/LED_strip/TUES-LED_strip_1/tinkercad_link.txt similarity index 100% rename from Examples/TUES-LED_strip_1/tinkercad_link.txt rename to Examples/LED_strip/TUES-LED_strip_1/tinkercad_link.txt diff --git a/Examples/Analog_Serial_Send_-_LDR/Analog_Serial_Send_-_LDR-Schematic.png b/Examples/UART/Analog_Serial_Send_-_LDR/Analog_Serial_Send_-_LDR-Schematic.png similarity index 100% rename from Examples/Analog_Serial_Send_-_LDR/Analog_Serial_Send_-_LDR-Schematic.png rename to Examples/UART/Analog_Serial_Send_-_LDR/Analog_Serial_Send_-_LDR-Schematic.png diff --git a/Examples/Analog_Serial_Send_-_LDR/Analog_Serial_Send_-_LDR.ino b/Examples/UART/Analog_Serial_Send_-_LDR/Analog_Serial_Send_-_LDR.ino similarity index 100% rename from Examples/Analog_Serial_Send_-_LDR/Analog_Serial_Send_-_LDR.ino rename to Examples/UART/Analog_Serial_Send_-_LDR/Analog_Serial_Send_-_LDR.ino diff --git a/Examples/UART-Send/Introduction-to-UART-Packet-Frame-and-Bits-2.png b/Examples/UART/UART-Send/Introduction-to-UART-Packet-Frame-and-Bits-2.png similarity index 100% rename from Examples/UART-Send/Introduction-to-UART-Packet-Frame-and-Bits-2.png rename to Examples/UART/UART-Send/Introduction-to-UART-Packet-Frame-and-Bits-2.png diff --git a/Examples/UART-Send/UART-Send.ino b/Examples/UART/UART-Send/UART-Send.ino similarity index 100% rename from Examples/UART-Send/UART-Send.ino rename to Examples/UART/UART-Send/UART-Send.ino diff --git a/Examples/UART-Send/UART-Signal-Sending_ASCII-V-CR-LF.bmp b/Examples/UART/UART-Send/UART-Signal-Sending_ASCII-V-CR-LF.bmp similarity index 100% rename from Examples/UART-Send/UART-Signal-Sending_ASCII-V-CR-LF.bmp rename to Examples/UART/UART-Send/UART-Signal-Sending_ASCII-V-CR-LF.bmp diff --git a/Examples/UART-Send/UART-Signal-Sending_ASCII-V-Zoomed.bmp b/Examples/UART/UART-Send/UART-Signal-Sending_ASCII-V-Zoomed.bmp similarity index 100% rename from Examples/UART-Send/UART-Signal-Sending_ASCII-V-Zoomed.bmp rename to Examples/UART/UART-Send/UART-Signal-Sending_ASCII-V-Zoomed.bmp diff --git a/Examples/UART-Send/UART-Signal-Sending_ASCII-V.bmp b/Examples/UART/UART-Send/UART-Signal-Sending_ASCII-V.bmp similarity index 100% rename from Examples/UART-Send/UART-Signal-Sending_ASCII-V.bmp rename to Examples/UART/UART-Send/UART-Signal-Sending_ASCII-V.bmp diff --git a/Examples/UART-Send/UnderstandingUART.jpg b/Examples/UART/UART-Send/UnderstandingUART.jpg similarity index 100% rename from Examples/UART-Send/UnderstandingUART.jpg rename to Examples/UART/UART-Send/UnderstandingUART.jpg diff --git a/Examples/EXTI0_Register_Demo/EXTI0_Register_Demo.ino b/Examples/interrupts/EXTI0_Register_Demo/EXTI0_Register_Demo.ino similarity index 100% rename from Examples/EXTI0_Register_Demo/EXTI0_Register_Demo.ino rename to Examples/interrupts/EXTI0_Register_Demo/EXTI0_Register_Demo.ino diff --git a/Examples/EXTI_Demo/EXTI_Demo.ino b/Examples/interrupts/EXTI_Demo/EXTI_Demo.ino similarity index 100% rename from Examples/EXTI_Demo/EXTI_Demo.ino rename to Examples/interrupts/EXTI_Demo/EXTI_Demo.ino diff --git a/Examples/external_interrupt/external_interrupt.ino b/Examples/interrupts/external_interrupt/external_interrupt.ino similarity index 100% rename from Examples/external_interrupt/external_interrupt.ino rename to Examples/interrupts/external_interrupt/external_interrupt.ino diff --git a/Examples/external_interrupt/external_interrupt.png b/Examples/interrupts/external_interrupt/external_interrupt.png similarity index 100% rename from Examples/external_interrupt/external_interrupt.png rename to Examples/interrupts/external_interrupt/external_interrupt.png diff --git a/Examples/external_interrupt/tinkercad_link.txt b/Examples/interrupts/external_interrupt/tinkercad_link.txt similarity index 100% rename from Examples/external_interrupt/tinkercad_link.txt rename to Examples/interrupts/external_interrupt/tinkercad_link.txt diff --git a/Examples/pin_change_demo/pin_change_demo.ino b/Examples/interrupts/pin_change_demo/pin_change_demo.ino similarity index 100% rename from Examples/pin_change_demo/pin_change_demo.ino rename to Examples/interrupts/pin_change_demo/pin_change_demo.ino diff --git a/Examples/DC_motor_and_servo/DC_motor_and_servo.ino b/Examples/motors/DC_motor_and_servo/DC_motor_and_servo.ino similarity index 100% rename from Examples/DC_motor_and_servo/DC_motor_and_servo.ino rename to Examples/motors/DC_motor_and_servo/DC_motor_and_servo.ino diff --git a/Examples/DC_motor_and_servo/DC_motor_and_servo.png b/Examples/motors/DC_motor_and_servo/DC_motor_and_servo.png similarity index 100% rename from Examples/DC_motor_and_servo/DC_motor_and_servo.png rename to Examples/motors/DC_motor_and_servo/DC_motor_and_servo.png diff --git a/Examples/DC_motor_and_servo/L293D_example_schematic_with_two_DC_motors.png b/Examples/motors/DC_motor_and_servo/L293D_example_schematic_with_two_DC_motors.png similarity index 100% rename from Examples/DC_motor_and_servo/L293D_example_schematic_with_two_DC_motors.png rename to Examples/motors/DC_motor_and_servo/L293D_example_schematic_with_two_DC_motors.png diff --git a/Examples/DC_motor_and_servo/tinkercad_link.txt b/Examples/motors/DC_motor_and_servo/tinkercad_link.txt similarity index 100% rename from Examples/DC_motor_and_servo/tinkercad_link.txt rename to Examples/motors/DC_motor_and_servo/tinkercad_link.txt diff --git a/Examples/DC_motor_speed_control/DC_motor_speed_control.ino b/Examples/motors/DC_motor_speed_control/DC_motor_speed_control.ino similarity index 100% rename from Examples/DC_motor_speed_control/DC_motor_speed_control.ino rename to Examples/motors/DC_motor_speed_control/DC_motor_speed_control.ino diff --git a/Examples/DC_motor_speed_control/DC_motor_speed_control.png b/Examples/motors/DC_motor_speed_control/DC_motor_speed_control.png similarity index 100% rename from Examples/DC_motor_speed_control/DC_motor_speed_control.png rename to Examples/motors/DC_motor_speed_control/DC_motor_speed_control.png diff --git a/Examples/DC_motor_speed_control/tinkercad_link.txt b/Examples/motors/DC_motor_speed_control/tinkercad_link.txt similarity index 100% rename from Examples/DC_motor_speed_control/tinkercad_link.txt rename to Examples/motors/DC_motor_speed_control/tinkercad_link.txt diff --git a/Examples/Stepper_demo/Backup Of Stepper_demo.pdsbak b/Examples/motors/Stepper_demo/Backup Of Stepper_demo.pdsbak similarity index 100% rename from Examples/Stepper_demo/Backup Of Stepper_demo.pdsbak rename to Examples/motors/Stepper_demo/Backup Of Stepper_demo.pdsbak diff --git a/Examples/Stepper_demo/Drive.png b/Examples/motors/Stepper_demo/Drive.png similarity index 100% rename from Examples/Stepper_demo/Drive.png rename to Examples/motors/Stepper_demo/Drive.png diff --git a/Examples/Stepper_demo/Last Loaded Stepper_demo.pdsbak b/Examples/motors/Stepper_demo/Last Loaded Stepper_demo.pdsbak similarity index 100% rename from Examples/Stepper_demo/Last Loaded Stepper_demo.pdsbak rename to Examples/motors/Stepper_demo/Last Loaded Stepper_demo.pdsbak diff --git a/Examples/Stepper_demo/Stepper_demo.PDF b/Examples/motors/Stepper_demo/Stepper_demo.PDF similarity index 100% rename from Examples/Stepper_demo/Stepper_demo.PDF rename to Examples/motors/Stepper_demo/Stepper_demo.PDF diff --git a/Examples/Stepper_demo/Stepper_demo.pdsprj b/Examples/motors/Stepper_demo/Stepper_demo.pdsprj similarity index 100% rename from Examples/Stepper_demo/Stepper_demo.pdsprj rename to Examples/motors/Stepper_demo/Stepper_demo.pdsprj diff --git a/Examples/Stepper_demo/Stepper_demo.pdsprj.DESKTOP-Q6QBCIN.Cartogan.workspace b/Examples/motors/Stepper_demo/Stepper_demo.pdsprj.DESKTOP-Q6QBCIN.Cartogan.workspace similarity index 100% rename from Examples/Stepper_demo/Stepper_demo.pdsprj.DESKTOP-Q6QBCIN.Cartogan.workspace rename to Examples/motors/Stepper_demo/Stepper_demo.pdsprj.DESKTOP-Q6QBCIN.Cartogan.workspace diff --git a/Examples/Stepper_demo/bipolar-vs-unipolar-stepper-motors.gif b/Examples/motors/Stepper_demo/bipolar-vs-unipolar-stepper-motors.gif similarity index 100% rename from Examples/Stepper_demo/bipolar-vs-unipolar-stepper-motors.gif rename to Examples/motors/Stepper_demo/bipolar-vs-unipolar-stepper-motors.gif diff --git a/Examples/Stepper_demo/stepper_demo_delay/stepper_demo_delay.ino b/Examples/motors/Stepper_demo/stepper_demo_delay/stepper_demo_delay.ino similarity index 100% rename from Examples/Stepper_demo/stepper_demo_delay/stepper_demo_delay.ino rename to Examples/motors/Stepper_demo/stepper_demo_delay/stepper_demo_delay.ino diff --git a/Examples/Stepper_demo/stepper_demo_timer/stepper_demo_timer.ino b/Examples/motors/Stepper_demo/stepper_demo_timer/stepper_demo_timer.ino similarity index 100% rename from Examples/Stepper_demo/stepper_demo_timer/stepper_demo_timer.ino rename to Examples/motors/Stepper_demo/stepper_demo_timer/stepper_demo_timer.ino diff --git a/Examples/Stepper_demo/stepper_motor.jpg b/Examples/motors/Stepper_demo/stepper_motor.jpg similarity index 100% rename from Examples/Stepper_demo/stepper_motor.jpg rename to Examples/motors/Stepper_demo/stepper_motor.jpg diff --git a/Examples/Stepper_demo/stepper_motor_animated.gif b/Examples/motors/Stepper_demo/stepper_motor_animated.gif similarity index 100% rename from Examples/Stepper_demo/stepper_motor_animated.gif rename to Examples/motors/Stepper_demo/stepper_motor_animated.gif diff --git a/Examples/Demo_test/Demo_test - Tinkercad - Schematic.png b/Examples/other/Demo_test/Demo_test - Tinkercad - Schematic.png similarity index 100% rename from Examples/Demo_test/Demo_test - Tinkercad - Schematic.png rename to Examples/other/Demo_test/Demo_test - Tinkercad - Schematic.png diff --git a/Examples/other/Demo_test/Demo_test.ino b/Examples/other/Demo_test/Demo_test.ino new file mode 100644 index 0000000..1cd0b33 --- /dev/null +++ b/Examples/other/Demo_test/Demo_test.ino @@ -0,0 +1,72 @@ +#include + +#define LED_STRIP_PIN 12 +#define SWITCH_PIN 2 + +#define IN1 5 +#define IN2 6 +#define EN 13 +#define POT A3 + +#define NUM_PIXELS 10 + +void button_pressed_ISR(void); + +volatile uint8_t pixel_color = 0; +volatile uint16_t counter = 0; +Adafruit_NeoPixel led_strip(NUM_PIXELS, LED_STRIP_PIN, NEO_GRB); + +void setup() +{ + pinMode(SWITCH_PIN, INPUT_PULLUP); + attachInterrupt(digitalPinToInterrupt(SWITCH_PIN), button_pressed_ISR, FALLING); + pinMode(LED_STRIP_PIN, OUTPUT); + led_strip.begin(); + + pinMode(IN1, OUTPUT); + pinMode(IN2, OUTPUT); + digitalWrite(IN2, LOW); + pinMode(EN, OUTPUT); + digitalWrite(EN, HIGH); + pinMode(POT, INPUT); + + noInterrupts(); + + TCNT1 = 0; + + ICR1 = 311; + OCR1B = 194; + TIMSK1 = (1 << TOIE1); + TCCR1A = (1 << WGM11) | (1 << COM1B1); + TCCR1B = (1 << WGM12) | (1 << WGM13) | (1 << CS12); + + interrupts(); + + Serial.begin(9600); +} + +void loop() +{ + if (pixel_color) + { + led_strip.setPixelColor(3, led_strip.Color(0, 255, 0)); + } + else + { + led_strip.setPixelColor(3, led_strip.Color(255, 255, 255)); + } + led_strip.show(); + delay(100); + + analogWrite(IN1, map(analogRead(POT), 0, 1023, 0, 255)); +} + +void button_pressed_ISR(void) +{ + pixel_color = !pixel_color; +} + +ISR(TIMER1_OVF_vect) +{ + counter++; +} diff --git a/Examples/Demo_test/tinkercad_link.txt b/Examples/other/Demo_test/tinkercad_link.txt similarity index 54% rename from Examples/Demo_test/tinkercad_link.txt rename to Examples/other/Demo_test/tinkercad_link.txt index c223182..77596f7 100644 --- a/Examples/Demo_test/tinkercad_link.txt +++ b/Examples/other/Demo_test/tinkercad_link.txt @@ -1,2 +1 @@ -// Slightly different implementation https://www.tinkercad.com/things/ffni7S7fML6 diff --git a/Examples/Timer_1_COMPA_Toggle_pin_13_at_1Hz/Timer_1_COMPA_Toggle_pin_13_at_1Hz.ino b/Examples/timer/Timer_1_COMPA_Toggle_pin_13_at_1Hz/Timer_1_COMPA_Toggle_pin_13_at_1Hz.ino similarity index 100% rename from Examples/Timer_1_COMPA_Toggle_pin_13_at_1Hz/Timer_1_COMPA_Toggle_pin_13_at_1Hz.ino rename to Examples/timer/Timer_1_COMPA_Toggle_pin_13_at_1Hz/Timer_1_COMPA_Toggle_pin_13_at_1Hz.ino diff --git a/Examples/Timer_1_COMPA_Toggle_pin_13_at_1Hz/Timer_1_COMPA_Toggle_pin_13_at_1Hz.png b/Examples/timer/Timer_1_COMPA_Toggle_pin_13_at_1Hz/Timer_1_COMPA_Toggle_pin_13_at_1Hz.png similarity index 100% rename from Examples/Timer_1_COMPA_Toggle_pin_13_at_1Hz/Timer_1_COMPA_Toggle_pin_13_at_1Hz.png rename to Examples/timer/Timer_1_COMPA_Toggle_pin_13_at_1Hz/Timer_1_COMPA_Toggle_pin_13_at_1Hz.png diff --git a/Examples/Timer_1_COMPA_and_OVF_10kHz_PWM/Timer_1_COMPA_and_OVF_10kHz_PWM.ino b/Examples/timer/Timer_1_COMPA_and_OVF_10kHz_PWM/Timer_1_COMPA_and_OVF_10kHz_PWM.ino similarity index 100% rename from Examples/Timer_1_COMPA_and_OVF_10kHz_PWM/Timer_1_COMPA_and_OVF_10kHz_PWM.ino rename to Examples/timer/Timer_1_COMPA_and_OVF_10kHz_PWM/Timer_1_COMPA_and_OVF_10kHz_PWM.ino diff --git a/Examples/Timer_1_COMPA_and_OVF_10kHz_PWM/Timer_1_COMPA_and_OVF_10kHz_PWM.png b/Examples/timer/Timer_1_COMPA_and_OVF_10kHz_PWM/Timer_1_COMPA_and_OVF_10kHz_PWM.png similarity index 100% rename from Examples/Timer_1_COMPA_and_OVF_10kHz_PWM/Timer_1_COMPA_and_OVF_10kHz_PWM.png rename to Examples/timer/Timer_1_COMPA_and_OVF_10kHz_PWM/Timer_1_COMPA_and_OVF_10kHz_PWM.png diff --git a/Examples/Timer_1_COMPA_and_OVF_10kHz_PWM/tinkercad_link.txt b/Examples/timer/Timer_1_COMPA_and_OVF_10kHz_PWM/tinkercad_link.txt similarity index 100% rename from Examples/Timer_1_COMPA_and_OVF_10kHz_PWM/tinkercad_link.txt rename to Examples/timer/Timer_1_COMPA_and_OVF_10kHz_PWM/tinkercad_link.txt diff --git a/Examples/Timer_1_CompMatchA_Interrupt/Timer_1_CompMatchA_Interrupt.ino b/Examples/timer/Timer_1_CompMatchA_Interrupt/Timer_1_CompMatchA_Interrupt.ino similarity index 100% rename from Examples/Timer_1_CompMatchA_Interrupt/Timer_1_CompMatchA_Interrupt.ino rename to Examples/timer/Timer_1_CompMatchA_Interrupt/Timer_1_CompMatchA_Interrupt.ino diff --git a/Examples/Timer_1_OC1A_Blink_pin_9_at_1Hz_with_external_enable/Timer_1_OC1A_Blink_pin_9_at_1Hz_with_external_enable.ino b/Examples/timer/Timer_1_OC1A_Blink_pin_9_at_1Hz_with_external_enable/Timer_1_OC1A_Blink_pin_9_at_1Hz_with_external_enable.ino similarity index 100% rename from Examples/Timer_1_OC1A_Blink_pin_9_at_1Hz_with_external_enable/Timer_1_OC1A_Blink_pin_9_at_1Hz_with_external_enable.ino rename to Examples/timer/Timer_1_OC1A_Blink_pin_9_at_1Hz_with_external_enable/Timer_1_OC1A_Blink_pin_9_at_1Hz_with_external_enable.ino diff --git a/Examples/Timer_1_OC1A_Blink_pin_9_at_1Hz_with_external_enable/Timer_1_OC1A_Blink_pin_9_at_1Hz_with_external_enable.png b/Examples/timer/Timer_1_OC1A_Blink_pin_9_at_1Hz_with_external_enable/Timer_1_OC1A_Blink_pin_9_at_1Hz_with_external_enable.png similarity index 100% rename from Examples/Timer_1_OC1A_Blink_pin_9_at_1Hz_with_external_enable/Timer_1_OC1A_Blink_pin_9_at_1Hz_with_external_enable.png rename to Examples/timer/Timer_1_OC1A_Blink_pin_9_at_1Hz_with_external_enable/Timer_1_OC1A_Blink_pin_9_at_1Hz_with_external_enable.png diff --git a/Examples/Timer_1_OC1A_Blink_pin_9_at_1Hz_with_external_enable/tinkercad_link.txt b/Examples/timer/Timer_1_OC1A_Blink_pin_9_at_1Hz_with_external_enable/tinkercad_link.txt similarity index 100% rename from Examples/Timer_1_OC1A_Blink_pin_9_at_1Hz_with_external_enable/tinkercad_link.txt rename to Examples/timer/Timer_1_OC1A_Blink_pin_9_at_1Hz_with_external_enable/tinkercad_link.txt diff --git a/Examples/Timer_DIP_switch_frequency/Timer_DIP_switch_frequency.ino b/Examples/timer/Timer_DIP_switch_frequency/Timer_DIP_switch_frequency.ino similarity index 100% rename from Examples/Timer_DIP_switch_frequency/Timer_DIP_switch_frequency.ino rename to Examples/timer/Timer_DIP_switch_frequency/Timer_DIP_switch_frequency.ino diff --git a/Examples/Timer_DIP_switch_frequency/Timer_DIP_switch_frequency.png b/Examples/timer/Timer_DIP_switch_frequency/Timer_DIP_switch_frequency.png similarity index 100% rename from Examples/Timer_DIP_switch_frequency/Timer_DIP_switch_frequency.png rename to Examples/timer/Timer_DIP_switch_frequency/Timer_DIP_switch_frequency.png diff --git a/Examples/Timer_DIP_switch_frequency/tinkercad_link.txt b/Examples/timer/Timer_DIP_switch_frequency/tinkercad_link.txt similarity index 100% rename from Examples/Timer_DIP_switch_frequency/tinkercad_link.txt rename to Examples/timer/Timer_DIP_switch_frequency/tinkercad_link.txt diff --git a/Examples/Timer_PWM_10kHz_D25/Timer_PWM_10kHz_D25.ino b/Examples/timer/Timer_PWM_10kHz_D25/Timer_PWM_10kHz_D25.ino similarity index 100% rename from Examples/Timer_PWM_10kHz_D25/Timer_PWM_10kHz_D25.ino rename to Examples/timer/Timer_PWM_10kHz_D25/Timer_PWM_10kHz_D25.ino diff --git a/Examples/Timer_PWM_10kHz_D50/Timer_PWM_10kHz_D50.ino b/Examples/timer/Timer_PWM_10kHz_D50/Timer_PWM_10kHz_D50.ino similarity index 100% rename from Examples/Timer_PWM_10kHz_D50/Timer_PWM_10kHz_D50.ino rename to Examples/timer/Timer_PWM_10kHz_D50/Timer_PWM_10kHz_D50.ino diff --git a/Examples/Timer_PWM_2Hz_D25/Timer_PWM_2Hz_D25.ino b/Examples/timer/Timer_PWM_2Hz_D25/Timer_PWM_2Hz_D25.ino similarity index 100% rename from Examples/Timer_PWM_2Hz_D25/Timer_PWM_2Hz_D25.ino rename to Examples/timer/Timer_PWM_2Hz_D25/Timer_PWM_2Hz_D25.ino diff --git a/Examples/Timer_PWM_2Hz_D80/Timer_PWM_2Hz_D80.ino b/Examples/timer/Timer_PWM_2Hz_D80/Timer_PWM_2Hz_D80.ino similarity index 100% rename from Examples/Timer_PWM_2Hz_D80/Timer_PWM_2Hz_D80.ino rename to Examples/timer/Timer_PWM_2Hz_D80/Timer_PWM_2Hz_D80.ino -- 2.39.5