001package jmri.jmrix.pi.simulator; 002 003/** 004 * Simulates a digital output GPIO pin for the JMRI Raspberry Pi simulator. 005 * Pure JMRI implementation — no Pi4J dependency. 006 * 007 * @author Daniel Bergqvist Copyright (C) 2022 008 * @author Bob Jacobsen Copyright (C) 2023 009 */ 010public class GpioPinDigitalOutputSimulator { 011 012 private boolean high = false; 013 014 public void high() { 015 high = true; 016 } 017 018 public void low() { 019 high = false; 020 } 021 022 public void setState(boolean h) { 023 high = h; 024 } 025 026 public boolean isHigh() { 027 return high; 028 } 029}