diff --git a/R/rpi_pinToBCM.R b/R/rpi_pinToBCM.R index 7dd0296..5a159e6 100644 --- a/R/rpi_pinToBCM.R +++ b/R/rpi_pinToBCM.R @@ -15,8 +15,8 @@ #' @examplesIf is.rpi() #' #' \dontrun { #' rpi_pinToBCM(1) # produces error since pin #1 is not data -#' } #' rpi_pinToBCM(40) # returns a named vector where bcm_line = 21 and pin_name = GPIO21 +#' } rpi_pinToBCM <- function(pin_number) { # check pin number. Are all values valid data lines?