| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- bool set_conf() {
- NEURON_A[0].Label = "A" ;
- NEURON_A[0].if_used = 1 ;
- NEURON_A[0].if_modified = 1 ;
- NEURON_A[0].Coordinate_X = DISPLAY_PHYS_A[0].X / 7 * 1 + 15 ;
- NEURON_A[0].Coordinate_Y = 10 ;
- NEURON_A[0].Coordinate_Z = 0 ;
-
- NEURON_A[1].Label = "B" ;
- NEURON_A[1].if_used = 1 ;
- NEURON_A[1].if_modified = 1 ;
- NEURON_A[1].Coordinate_X = DISPLAY_PHYS_A[0].X / 7 * 2 ;
- NEURON_A[1].Coordinate_Y = 10 ;
- NEURON_A[1].Coordinate_Z = 0 ;
-
- NEURON_A[2].Label = "C" ;
- NEURON_A[2].if_used = 1 ;
- NEURON_A[2].if_modified = 1 ;
- NEURON_A[2].Coordinate_X = DISPLAY_PHYS_A[0].X / 7 * 3 ;
- NEURON_A[2].Coordinate_Y = 10 ;
- NEURON_A[2].Coordinate_Z = 0 ;
-
- NEURON_A[3].Label = "D" ;
- NEURON_A[3].if_used = 1 ;
- NEURON_A[3].if_modified = 1 ;
- NEURON_A[3].Coordinate_X = DISPLAY_PHYS_A[0].X / 7 * 4 ;
- NEURON_A[3].Coordinate_Y = 10 ;
- NEURON_A[3].Coordinate_Z = 0 ;
-
-
- NEURON_A[4].Label = "E" ;
- NEURON_A[4].if_used = 1 ;
- NEURON_A[4].if_modified = 1 ;
- NEURON_A[4].Coordinate_X = DISPLAY_PHYS_A[0].X / 7 * 5 ;
- NEURON_A[4].Coordinate_Y = 10 ;
- NEURON_A[4].Coordinate_Z = 0 ;
-
-
- NEURON_A[5].Label = "F" ;
- NEURON_A[5].if_used = 1 ;
- NEURON_A[5].if_modified = 1 ;
- NEURON_A[5].Coordinate_X = DISPLAY_PHYS_A[0].X / 7 * 6 ;
- NEURON_A[5].Coordinate_Y = 10 ;
- NEURON_A[5].Coordinate_Z = 0 ;
-
-
- NEURON_A[6].Label = "S" ;
- NEURON_A[6].if_used = 1 ;
- NEURON_A[6].if_modified = 1 ;
- NEURON_A[6].Coordinate_X = DISPLAY_PHYS_A[0].X / 7 * 0 + 15 ;
- NEURON_A[6].Coordinate_Y = 30 ;
- NEURON_A[6].Coordinate_Z = 0 ;
-
- //synapsa od A do S
- Current_synapse_A[0].if_used = 1;
- Current_synapse_A[0].if_modified = 1;
- Current_synapse_A[0].ID_NEURON = 0 ;
- Current_synapse_A[0].Output_Node = 6 ;
-
- }
- bool set_conf_R = set_conf();
- int NEURON_A_INDEX_NEXT = 7 ;
- int Current_synapse_A_INDEX_NEXT = 1 ;
- int Coordinate_Y_current_max = 30 ;
- const int action_button_input_Maximum_current = 3 ;
- const int action_button_input_Time_constant = 2 ;
- const int neuron_Resting_Potenial_latency = 10 ;
- const int neuron_Resting_Potenial_latency_test_print = 5000 ;
- const int neuron_Refactory_period_ratio = 100 ; //to millis
- //const int Current_synapse_A_Delay_ratio = 100 ; //to millis
- const int Simulated_potential_show_lcd_latency = 1000 ;
- const int neuron_print_latency = 10 ;
- const int neuron_print_if_has_input_millis_delay = 500 ; //extra keep active synapse for time to show
- const int neuron_Resting_Potenial__printed__level = 1 ; //below will not refresh
- //const long neuron_Attract_min = -65 ; //parametr glowny do attract
- //#define NEURON_A_LIMIT 20
- //#define Input_A_LIMIT 20
- //#define Current_synapse_A_LIMIT 20
- //#define Simulation_attract__x3A__calculate_A_LIMIT 10
- //#define Slave_Ports_Status_A_LIMIT 8
|