This trap is designed similar to the arrow trap, However as long as the pistons have the wiring setup as it is in the example, you can use buttons or levers as well. If you want pistons to make the floor disappear, you will require a NOT circuit. If you want pistons to push the player off the ledge, you will need a basic trigger routed to the pistons.