[examples] Misc fixes for snippets (#7952)

This commit is contained in:
sciencewhiz
2025-05-04 00:13:46 -07:00
committed by GitHub
parent a15152712f
commit b96264f042
6 changed files with 1 additions and 12 deletions

View File

@@ -15,7 +15,7 @@ import edu.wpi.first.wpilibj.TimedRobot;
public class Robot extends TimedRobot {
// Initializes an AnalogTrigger on port 0
AnalogTrigger m_trigger0 = new AnalogTrigger(0);
// Initializes an AnalogInput on port 1 and enables 2-bit oversampling
// Initializes an AnalogInput on port 1
AnalogInput m_input = new AnalogInput(1);
// Initializes an AnalogTrigger using the above input