neuron-conf.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. bool set_conf() {
  2. NEURON_A[0].Label = "A" ;
  3. NEURON_A[0].if_used = 1 ;
  4. NEURON_A[0].if_modified = 1 ;
  5. NEURON_A[0].Coordinate_X = DISPLAY_PHYS_A[0].X / 7 * 1 + 15 ;
  6. NEURON_A[0].Coordinate_Y = 10 ;
  7. NEURON_A[0].Coordinate_Z = 0 ;
  8. NEURON_A[1].Label = "B" ;
  9. NEURON_A[1].if_used = 1 ;
  10. NEURON_A[1].if_modified = 1 ;
  11. NEURON_A[1].Coordinate_X = DISPLAY_PHYS_A[0].X / 7 * 2 ;
  12. NEURON_A[1].Coordinate_Y = 10 ;
  13. NEURON_A[1].Coordinate_Z = 0 ;
  14. NEURON_A[2].Label = "C" ;
  15. NEURON_A[2].if_used = 1 ;
  16. NEURON_A[2].if_modified = 1 ;
  17. NEURON_A[2].Coordinate_X = DISPLAY_PHYS_A[0].X / 7 * 3 ;
  18. NEURON_A[2].Coordinate_Y = 10 ;
  19. NEURON_A[2].Coordinate_Z = 0 ;
  20. NEURON_A[3].Label = "D" ;
  21. NEURON_A[3].if_used = 1 ;
  22. NEURON_A[3].if_modified = 1 ;
  23. NEURON_A[3].Coordinate_X = DISPLAY_PHYS_A[0].X / 7 * 4 ;
  24. NEURON_A[3].Coordinate_Y = 10 ;
  25. NEURON_A[3].Coordinate_Z = 0 ;
  26. NEURON_A[4].Label = "E" ;
  27. NEURON_A[4].if_used = 1 ;
  28. NEURON_A[4].if_modified = 1 ;
  29. NEURON_A[4].Coordinate_X = DISPLAY_PHYS_A[0].X / 7 * 5 ;
  30. NEURON_A[4].Coordinate_Y = 10 ;
  31. NEURON_A[4].Coordinate_Z = 0 ;
  32. NEURON_A[5].Label = "F" ;
  33. NEURON_A[5].if_used = 1 ;
  34. NEURON_A[5].if_modified = 1 ;
  35. NEURON_A[5].Coordinate_X = DISPLAY_PHYS_A[0].X / 7 * 6 ;
  36. NEURON_A[5].Coordinate_Y = 10 ;
  37. NEURON_A[5].Coordinate_Z = 0 ;
  38. NEURON_A[6].Label = "S" ;
  39. NEURON_A[6].if_used = 1 ;
  40. NEURON_A[6].if_modified = 1 ;
  41. NEURON_A[6].Coordinate_X = DISPLAY_PHYS_A[0].X / 7 * 0 + 15 ;
  42. NEURON_A[6].Coordinate_Y = 30 ;
  43. NEURON_A[6].Coordinate_Z = 0 ;
  44. //synapsa od A do S
  45. Current_synapse_A[0].if_used = 1;
  46. Current_synapse_A[0].if_modified = 1;
  47. Current_synapse_A[0].ID_NEURON = 0 ;
  48. Current_synapse_A[0].Output_Node = 6 ;
  49. }
  50. bool set_conf_R = set_conf();
  51. int NEURON_A_INDEX_NEXT = 7 ;
  52. int Current_synapse_A_INDEX_NEXT = 1 ;
  53. int Coordinate_Y_current_max = 30 ;
  54. const int action_button_input_Maximum_current = 3 ;
  55. const int action_button_input_Time_constant = 2 ;
  56. const int neuron_Resting_Potenial_latency = 10 ;
  57. const int neuron_Resting_Potenial_latency_test_print = 5000 ;
  58. const int neuron_Refactory_period_ratio = 100 ; //to millis
  59. //const int Current_synapse_A_Delay_ratio = 100 ; //to millis
  60. const int Simulated_potential_show_lcd_latency = 1000 ;
  61. const int neuron_print_latency = 10 ;
  62. const int neuron_print_if_has_input_millis_delay = 500 ; //extra keep active synapse for time to show
  63. const int neuron_Resting_Potenial__printed__level = 1 ; //below will not refresh
  64. //const long neuron_Attract_min = -65 ; //parametr glowny do attract
  65. //#define NEURON_A_LIMIT 20
  66. //#define Input_A_LIMIT 20
  67. //#define Current_synapse_A_LIMIT 20
  68. //#define Simulation_attract__x3A__calculate_A_LIMIT 10
  69. //#define Slave_Ports_Status_A_LIMIT 8